jakarta-bcel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42655] New: - ParameterAnnotationEntries are read not dumped
Date Thu, 14 Jun 2007 08:42:16 GMT
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: reinhard.pilz@dynatrace.com


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: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


Mime
View raw message