geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (XBEAN-276) Runtime Exception in ASM using Java 8 and "store information about method parameters"
Date Wed, 05 Aug 2015 16:49:04 GMT

    [ https://issues.apache.org/jira/browse/XBEAN-276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14658493#comment-14658493
] 

Jon Schneider commented on XBEAN-276:
-------------------------------------

I see the duplicate issue now, and that this is on track for being fixed in 4.4

> 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
>         Attachments: EmptyVisitorASM5.patch
>
>
> 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)

Mime
View raw message