Frames computation with ClassWriter.getCommonSuperClass()

Clement Escoffier <[email protected]> Mon, 9 Jan 2012 18:34:39 +0100
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Hi,

I'm in trouble with the getCommonSuperClass. Until recently, my class writer was not computing the frames, and everything was fine. However with Java 7, I've to compute them, adding the right flag to my class writer. Unfortunately, in some case, I get a class loading exception. I've figured out from where it comes : getCommonSuperClass. 

If I understand correctly, in some case ASM needs to know the super class to write the frames. Unfortunately, it's not always possible in my cases:
* either the classes cannot be loaded (as well as the byte[] of the .class file found)
* the manipulator has no idea where are those classes. 

For example, let's consider a hybrid project using both the Eclipse compiler, writing .class files in several directories, and an Ant build taking those classes independently and launching some instrumentation process (using ASM). 

Is there any way to avoid the call to getCommonSuperClass, or is there anyway to turn around the class dependency ?

Thanks and Regards,

Clement
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