[
https://issues.apache.org/jira/browse/BCEL-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528160#comment-14528160
]
Jon Freedman commented on BCEL-173:
-----------------------------------
Java 7 is now in end-of-life & no-longer recommended for production use. If
there is no 6.0 relesae forthcoming I see no alternative but to find
replacements for any libraries dependent on BCEL. I don't know how up to date
your "Used by" link is but if it's not possible to get a build out within the
next month or so I don't see much future for the project.
> ClassParser fails to parse JDK classes in Java 8: ClassFormatException:
> Invalid byte tag in constant pool
> ---------------------------------------------------------------------------------------------------------
>
> Key: BCEL-173
> URL: https://issues.apache.org/jira/browse/BCEL-173
> Project: Commons BCEL
> Issue Type: Bug
> Affects Versions: 5.0, 5.1, 5.2
> Reporter: David Carr
> Fix For: 6.0
>
> Attachments: bcel-bug.tgz, bceltestcase.zip
>
>
> See attached sample project that reproduces the failure. On Java 7, it
> prints info about the ConcurrentMap class. On Java 8, it encounters the
> following exception:
> {code}
> Exception in thread "main" org.apache.bcel.classfile.ClassFormatException:
> Invalid byte tag in constant pool: 18
> at org.apache.bcel.classfile.Constant.readConstant(Constant.java:146)
> at org.apache.bcel.classfile.ConstantPool.<init>(ConstantPool.java:67)
> at
> org.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:222)
> at org.apache.bcel.classfile.ClassParser.parse(ClassParser.java:136)
> at TestMain.main(TestMain.java:11)
> {code}
> To use the sample project, extract it and then run "./gradlew clean run".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)