DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42655>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42655

           Summary: ParameterAnnotationEntries are read not dumped
           Product: BCEL
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: bcel-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Bytecode for methods which contain an Attribute of type
RuntimeInvisibleParameterAnnotations or RuntimeVisibleParameterAnnotations is
not valid when dumped by BCEL.

The Attribute itself seems to be written, but the AnnotationEntries contained in
there are not.

A test case for this issue would be this class:

public class Foo() {

public int bar(@javax.jws.WebParam int input) {
  return input;
}


Our current solution is to override the dump-Method in 

org.apache.bcel.classfile.ParameterAnnotations

    public final void dump(DataOutputStream dos) throws IOException {
        super.dump(dos);
        writeAnnotations(dos);
    }

and org.apache.bcel.classfile.ParameterAnnotationEntry

    public final void dump(DataOutputStream dos) throws IOException {
        dos.writeShort(annotation_table_length);
        for (int i = 0; i < annotation_table_length; i++) {
           annotation_table[i].dump(dos);
        }
    }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to