[ 
https://issues.apache.org/jira/browse/BCEL-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Emmanuel Bourg updated BCEL-107:
--------------------------------

         Priority: Blocker
      Environment:     (was: Operating System: All
Platform: All)
    Fix Version/s: 6.0

> ParameterAnnotationEntries are read not dumped
> ----------------------------------------------
>
>                 Key: BCEL-107
>                 URL: https://issues.apache.org/jira/browse/BCEL-107
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: unspecified
>            Reporter: Reinhard Pilz
>            Assignee: Apache Commons Developers
>            Priority: Blocker
>             Fix For: 6.0
>
>
> 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);
>         }
>     }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to