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

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

--- Comment #13 from Enrico Gueli enrico.gu...@polito.it 2009-11-30 15:23:34 
UTC ---
Forgive me for the false alarm: I did some mistakes while applying the patch
and therefore I got those errors again. I've retried now, and it works like a
charm. THANK YOU!!

BTW, the difficulties I had in applying the patch were only due to differences
in the whitespace.

Best regards

-- 
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] Class files containing StackMapTable attributes (on method code) are dumped incorrectly

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

--- Comment #12 from Mattias Ulbrich mulbr...@ira.uka.de 2009-11-27 04:56:02 
UTC ---
Hi!

Do you have changed anything in the classes that fail to be read?
If you - for instance - add instructions to the code block and modify the
constant pool with that, the stack map table is not updated like the line
number table is. The dumping might then export invalid constants (perhaps).

Could you possibly post an example of a corrupted file (pre- and
post-processing)?

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] Class files containing StackMapTable attributes (on method code) are dumped incorrectly

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

--- Comment #9 from Mattias Ulbrich mulbr...@ira.uka.de 2009-11-18 07:09:06 
UTC ---
Hello!

In addition to the here report bugs, I assume very much that all those
readShort method calls should actually read readUnsignedShort since
negative values would not make sense there ...

5.2 does not allow to modify classes that have stack maps and save them, since
the dumping is very likely to crash. (Hope the patch NOW solves the issue)

-- 
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] Class files containing StackMapTable attributes (on method code) are dumped incorrectly

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

--- Comment #7 from Enrico Gueli enrico.gu...@polito.it 2009-10-28 03:46:09 
UTC ---
(In reply to comment #6)
 Damn, so close. It works with some classes, but BCEL-svn seems to die
 processing other classes with e.g.:
 
 Exception in thread main java.lang.ClassFormatError: Illegal constant pool
 index 29440 for method name in class file MyTestClass
 
 Probably unrelated to this bug though, as I have not yet got to putting
 annotations on that class.

Hello,
the same applies for me. I encountered the problem in this bug report, applied
the patch (with some handwork, because the HEAD (826342) revision is a bit
different) but I had to stop again in the same exception as yours. Only the
index changes, mine is 64764.

Best regards, Enrico

-- 
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] Class files containing StackMapTable attributes (on method code) are dumped incorrectly

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



--- Comment #6 from Len Trigg len...@gmail.com 2009-08-23 23:30:48 PDT ---
Damn, so close. It works with some classes, but BCEL-svn seems to die
processing other classes with e.g.:

Exception in thread main java.lang.ClassFormatError: Illegal constant pool
index 29440 for method name in class file MyTestClass

Probably unrelated to this bug though, as I have not yet got to putting
annotations on that class.

-- 
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] Class files containing StackMapTable attributes (on method code) are dumped incorrectly

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


Len Trigg len...@gmail.com changed:

   What|Removed |Added

 CC||len...@gmail.com




--- Comment #1 from Len Trigg len...@gmail.com  2009-05-14 15:09:20 PST ---
I think I'm hitting this same problem (processing jdk1.6-generated class
files).  I applied your patch, but it does not make any changes to
StackMapTableEntry.dump() where the exception is being raised.

I assume there should be an

if (frame_type = Constants.SAME_FRAME  frame_type =
Constants.SAME_FRAME_MAX) {
...
} else 

after the initial write of frame_type, but what should be inside the if?

-- 
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