[ https://jira.terracotta.org/jira//browse/CDV-286?page=comments#action_21516 ] Eugene Kuleshov commented on CDV-286: -------------------------------------
Apparently I missed few places where ClassReader.accept() method is called without SKIP_FRAMES (stupid method call references search in Eclipse). Here is the list: \code\base\aspectwerkz\src\com\tc\aspectwerkz\proxy\ProxyDelegationCompiler.java \code\base\aspectwerkz\src\com\tc\aspectwerkz\transform\inlining\ProxyWeavingStrategy.java \code\base\aspectwerkz\src\com\tc\aspectwerkz\transform\inlining\weaver\SerialVersionUidVisitor.java \code\base\dso-l1\src\com\tc\object\bytecode\hook\impl\DefaultWeavingStrategy.java So, you need to find all calls to ClassReader.accept() methods and add ClassReader.SKIP_FRAMES bitmask into the second parameter. This is a trivial fix, I > Issues with Java 6 bytecode > --------------------------- > > Key: CDV-286 > URL: https://jira.terracotta.org/jira//browse/CDV-286 > Project: Community Development > Issue Type: Bug > Components: DSO:L1 > Affects Versions: 2.3 > Reporter: Eugene Kuleshov > Assigned To: Nathaniel Harward > Attachments: mylar-context.zip, terracotta-client_asmAssert_.log > > > We saw some failure when instrumenting bytecode compiled with -target 1.6: > java.lang.IllegalStateException: ClassReader.accept() should be called with > EXPAND_FRAMES flag > at > com.tc.asm.commons.LocalVariablesSorter.visitFrame(LocalVariablesSorter.java:169) > > at com.tc.asm.ClassReader.accept(ClassReader.java:1159) > at com.tc.asm.ClassReader.accept(ClassReader.java:394) > at > com.tc.object.bytecode.hook.impl.DefaultWeavingStrategy.transform(DefaultWeavingStrategy.java:269) > > at > com.tc.object.bytecode.hook.impl.DSOContextImpl.preProcess(DSOContextImpl.java:137) > at > com.tc.object.bytecode.hook.impl.ClassProcessorHelper.defineClass0Pre(ClassProcessorHelper.java:416) > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://jira.terracotta.org/jira//secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ tc-dev mailing list [email protected] http://lists.terracotta.org/mailman/listinfo/tc-dev
