Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D8CA5178F3 for ; Mon, 29 Sep 2014 22:17:34 +0000 (UTC) Received: (qmail 89830 invoked by uid 500); 29 Sep 2014 22:17:34 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 89734 invoked by uid 500); 29 Sep 2014 22:17:34 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 89721 invoked by uid 99); 29 Sep 2014 22:17:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Sep 2014 22:17:34 +0000 Date: Mon, 29 Sep 2014 22:17:34 +0000 (UTC) From: "Ian Brandt (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BCEL-173) ClassParser fails to parse JDK classes in Java 8: ClassFormatException: Invalid byte tag in constant pool MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/BCEL-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14152410#comment-14152410 ] Ian Brandt commented on BCEL-173: --------------------------------- This is depended upon by https://github.com/jibx/jibx/issues/3. There are currently [no unresolved issues assigned to BCEL 6.0|https://issues.apache.org/jira/issues/?jql=project%20%3D%20BCEL%20AND%20fixVersion%20%3D%206.0%20AND%20resolution%20%3D%20Unresolved%20ORDER%20BY%20due%20ASC%2C%20priority%20DESC%2C%20created%20ASC]. A release would allow for downstream projects like JiBX to update for Java 8 without depending on a snapshot version. > 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 > > > 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.(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)