Re: Re: Re: ArrayIndexOutOfBounds when read class

Eugene Kuleshov <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Ping,

  The problem is likely in how you read the class bytes, i.e. you 
passing an incomplete byte array to the ClassReader.

  regards,
  Eugene


Ping Mao wrote:
> Hi Rémi,
>
> I used asm-debug-all-3.3.jar, and the following is the full stack trace for
> class: com.sun.crypto.provider.SunJCE_b.java
>
> java.lang.ArrayIndexOutOfBoundsException: 27233
> 	at org.objectweb.asm.ClassReader.readUTF8(ClassReader.java:1946)
> 	at org.objectweb.asm.ClassReader.accept(ClassReader.java:527)
> 	at org.objectweb.asm.ClassReader.accept(ClassReader.java:425)
> 	at ASMReaderTest.testAlmostEveryClassInTheJRE(ASMReaderTest.java:55)
>
> ASMReaderTest is my test file. If it is needed, I can send it to you.
>
> Thank you,
> Ping
>
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
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.