Re: Re: Re: Re: ArrayIndexOutOfBounds when read class
Ping Mao <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
Hi Eugene, Thanks for replying. But I don't understand how come it is incomplete byte array, or how I can avoid incomplete byte array. I see the same issue on the same class in two ways of reading the class: 1. javaagent's transformer by reading the class bytes array ClassReader cr = new ClassReader(classBytes); ClassWriter cw = new ClassWriter( cr, ClassWriter.COMPUTE_MAXS); cr.accept(cw, 0); 2. input stream from the file system: ClassReader cr = new ClassReader( jar.getInputStream( entry ) ); ClassWriter cw = new ClassWriter( cr, ClassWriter.COMPUTE_MAXS); cr.accept(cw, 0); Thanks, 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