DO NOT REPLY [Bug 47072] New: Class files containing ParameterAnnotations are dumped incorrectly

2009-04-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47072

   Summary: Class files containing ParameterAnnotations are
dumped incorrectly
   Product: BCEL
   Version: 5.3
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: mulbr...@ira.uka.de


Created an attachment (id=23526)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=23526)
proposed patch to fix this issue

A JavaClass containing methods with annotated parameters is dumped incorrectly.
The content of such annotation attributes is not dumped,
   ParameterAnnotationEntry.dump(DataOutputStream dos)
   ParameterAnnotations.dump(DataOutputStream dos)
were not implemented.

I propose the implementation in the attached diff. It works for my examples.


Regards,
   Mattias

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

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org



DO NOT REPLY [Bug 47073] New: Class files containing StackMapTable attributes (on method code) are dumped incorrectly

2009-04-22 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47073

   Summary: Class files containing StackMapTable attributes (on
method code) are dumped incorrectly
   Product: BCEL
   Version: 5.3
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Main
AssignedTo: bcel-dev@jakarta.apache.org
ReportedBy: mulbr...@ira.uka.de


Created an attachment (id=23528)
 -- (https://issues.apache.org/bugzilla/attachment.cgi?id=23528)
proposed patch to possibly fix this issue

When dumping an (untouched) class file containing a StackMap table, the result
is not faithful and cannot be be reloaded afterwards.

The problem, I reckon, is within the method StackMapTableEntry.dump. One case
raises an exception though it should not and other cases write byte values
though short values should be written instead.

The attached diff fixed the problem for my purposes, but I do not know whether
it is correct.

Regards,
Mattias

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

-
To unsubscribe, e-mail: bcel-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: bcel-dev-h...@jakarta.apache.org