commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Honton (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BCEL-221) BCELifier is not working for Java8Example
Date Wed, 26 Aug 2015 01:42:46 GMT

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

Charles Honton commented on BCEL-221:
-------------------------------------

https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.10 defines the second
attribute of CONSTANT_InvokeDynamic_info to be bootstrap_method_attr_index (an index into
the bootstrap_methods array of the bootstrap method table)

I suspect we're using bootstrap_method_attr_index as an index into constant pool.

> BCELifier is not working for Java8Example
> -----------------------------------------
>
>                 Key: BCEL-221
>                 URL: https://issues.apache.org/jira/browse/BCEL-221
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Verifier
>    Affects Versions: 6.0
>            Reporter: Charles Honton
>
> org.apache.bcel.util.BCELifier Java8Example fails:
> Exception in thread "main" org.apache.bcel.classfile.ClassFormatException: Constant pool
at index 0 is null.
> 	at org.apache.bcel.classfile.ConstantPool.getConstant(ConstantPool.java:259)
> 	at org.apache.bcel.classfile.ConstantPool.getConstantString(ConstantPool.java:294)
> 	at org.apache.bcel.generic.FieldOrMethod.getClassName(FieldOrMethod.java:89)
> 	at org.apache.bcel.util.BCELFactory.visitInvokeInstruction(BCELFactory.java:162)
> 	at org.apache.bcel.generic.INVOKEDYNAMIC.accept(INVOKEDYNAMIC.java:117)
> 	at org.apache.bcel.util.BCELFactory.start(BCELFactory.java:101)
> 	at org.apache.bcel.util.BCELifier.visitMethod(BCELifier.java:181)
> 	at org.apache.bcel.classfile.Method.accept(Method.java:106)
> 	at org.apache.bcel.util.BCELifier.visitJavaClass(BCELifier.java:120)
> 	at org.apache.bcel.util.BCELifier.start(BCELifier.java:69)
> 	at org.apache.bcel.util.BCELifier.main(BCELifier.java:270)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message