[ 
https://issues.apache.org/jira/browse/XBEAN-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruedi Steinmann updated XBEAN-276:
----------------------------------
    Attachment: EmptyVisitorASM5.patch

Patch on current trunk

> 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)

Reply via email to