You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xbean-dev@geronimo.apache.org by "Ruedi Steinmann (JIRA)" <ji...@apache.org> on 2014/12/27 22:55:13 UTC
[jira] [Commented] (XBEAN-276) Runtime Exception in ASM using Java
8 and "store information about method parameters"
[ https://issues.apache.org/jira/browse/XBEAN-276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14259500#comment-14259500 ]
Ruedi Steinmann commented on XBEAN-276:
---------------------------------------
Just tried out the proposed fix -> works
> Runtime Exception in ASM using Java 8 and "store information about method parameters"
> --------------------------------------------------------------------------------------
>
> Key: XBEAN-276
> URL: https://issues.apache.org/jira/browse/XBEAN-276
> Project: XBean
> Issue Type: Bug
> Affects Versions: 3.18, 4.1, 4.0
> Environment: Linux, Java 8
> Reporter: Ruedi Steinmann
> Priority: Critical
>
> I am launing a JUnit Test and get the exception below. When setting an exception breakpoint on the RuntimeException, I see that the MethodVisitor is actually an instance of org.apache.xbean.asm5.shade.commons.EmptyVisitor$3 and that it's api field is set to 262144, which equals Opcodes.ASM4. When looking at the source code of EmptyVisitor, the MethodVisitor is instantiated on line 73, and I guess the Opcodes.ASM4 in this line got forgotten when migrating to ASM5.
> Stack Trace:
> Caused by: java.lang.RuntimeException
> at org.apache.xbean.asm5.MethodVisitor.visitParameter(Unknown Source)
> at org.apache.xbean.asm5.ClassReader.b(Unknown Source)
> at org.apache.xbean.asm5.ClassReader.accept(Unknown Source)
> at org.apache.xbean.asm5.ClassReader.accept(Unknown Source)
> at org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1149
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)