You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-dev@jakarta.apache.org by bu...@apache.org on 2007/06/14 10:42:16 UTC
DO NOT REPLY [Bug 42655] New: - ParameterAnnotationEntries are read not dumped
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
DO NOT REPLY [Bug 42655] - ParameterAnnotationEntries are read not dumped
Posted by bu...@apache.org.
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
tcurdt@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
------- Additional Comments From tcurdt@apache.org 2008-02-02 12:10 -------
would you mind providing a patch against trunk?
--
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