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

Michael Vorburger commented on XBEAN-276:
-----------------------------------------

I've verified that the problem shown above disappears with e.g. 
xbean-finder-shaded version 4.5 (but probably 4.4. already), in the context of 
https://stackoverflow.com/questions/38825386/blueprint-maven-plugin-runtimeexception/.

This bug should be closed as a duplicate of XBEAN-286 by someone with more 
Apache JIRA permissions than I have.

> 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