Re: byte code transformation checking

Eugene Kuleshov <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
  First of all, ASM isn't designed to work with broken bytecode 
structures. In other words, the bytecode must be readable and I suspect 
you may have an incompletely saved file.

  But if you are certain that file is intact, in this case it haven't 
got to the CheckClassAdapter, because of the broken bytecode structures. 
To deal with that you need to put the CheckClassAdapter into your 
visitors chain before the ClassWriter and make sure it passes trough.

  regards,
  Eugene


luc peuvrier at home wrote:
> Hi,
>  
> I run CheckClassAdapter main with 
> "logs/classes/org/eclipse/jdt/internal/junit/runner/RemoteTestRunner.class" 
> as argument.
> And I have the here below error:
>  
>
>     Exception in thread "main"
>     _java.lang.ArrayIndexOutOfBoundsException_: 2
>     at
>     net.sf.joafip.asm.ClassReader.readFrameType(_ClassReader.java:1699_)
>     at net.sf.joafip.asm.ClassReader.accept(_ClassReader.java:1237_)
>     at net.sf.joafip.asm.ClassReader.accept(_ClassReader.java:436_)
>     at
>     net.sf.joafip.asm.util.CheckClassAdapter.verify(_CheckClassAdapter.java:207_)
>     at
>     net.sf.joafip.asm.util.CheckClassAdapter.verify(_CheckClassAdapter.java:253_)
>     at
>     net.sf.joafip.asm.util.CheckClassAdapter.main(_CheckClassAdapter.java:185_)
>
>  
> I expect CheckClassAdapter say to me that is wrong in RemoteTestRunner 
> class.
>  
> Best regards
> Luc
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.