RE: Bcel 5.1 is not working under jdk 1.5

"Lan, Fang" <[email protected]>
Newsgroups gmane.comp.jakarta.bcel.user
Message-ID <4E396D7EE1D2C349ADA53F6ADA6E1E251B8E07@ex-mail-sea-05.ant.amazon.com>
This class is from the binary downloaded from the site. When I use jdk 1.5 to use the downloaded bcel.jar to do some instrumentation, I got the error.

-----Original Message-----
From: Dave Brosius [mailto:[email protected]] 
Sent: Tuesday, May 03, 2005 9:08 PM
To: BCEL Users List
Subject: Re: Bcel 5.1 is not working under jdk 1.5


Is this class one that was created by javac? or some other means?
----- Original Message ----- 
From: "Lan, Fang" <[email protected]>
To: <[email protected]>
Sent: Tuesday, May 03, 2005 7:00 PM
Subject: Bcel 5.1 is not working under jdk 1.5


The error I'm getting is:

Exception in thread "main" org.apache.bcel.classfile.ClassFormatException: 
Invalid constant pool reference: 5560. Constant pool size is: 1024
[instrument]    at 
org.apache.bcel.classfile.ConstantPool.getConstant(ConstantPool.java:242)
[instrument]    at 
org.apache.bcel.classfile.Utility.codeToString(Utility.java:369)
[instrument]    at 
org.apache.bcel.classfile.Utility.codeToString(Utility.java:166)
[instrument]    at org.apache.bcel.classfile.Code.toString(Code.java:326)

Do you have any idea how to get it fixed?

Thanks!
-Fang



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.