Author: ggregory
Date: Mon Nov 27 18:51:55 2017
New Revision: 1816488

URL: http://svn.apache.org/viewvc?rev=1816488&view=rev
Log:
[BCEL-300] org.apache.bcel.classfile.ClassFormatException: Invalid byte tag in 
constant pool: 19.

Modified:
    commons/proper/bcel/trunk/src/changes/changes.xml
    
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/Constant.java

Modified: commons/proper/bcel/trunk/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/changes/changes.xml?rev=1816488&r1=1816487&r2=1816488&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/changes/changes.xml [utf-8] (original)
+++ commons/proper/bcel/trunk/src/changes/changes.xml [utf-8] Mon Nov 27 
18:51:55 2017
@@ -66,6 +66,7 @@ The <action> type attribute can be add,u
       <action issue="BCEL-294" type="fix" dev="britter" due-to="Mark 
Roberts">Incorrect comment in StackMap.java</action>
       <action issue="BCEL-296" type="fix" dev="ggregory" due-to="Mark 
Roberts">Incorrect comment in several classes.</action>
       <action issue="BCEL-295" type="fix" dev="ggregory" due-to="Mark 
Roberts">Fix local variable live range length; add test case.</action>
+      <action issue="BCEL-300" type="fix" dev="ggregory" due-to="Mark 
Roberts">org.apache.bcel.classfile.ClassFormatException: Invalid byte tag in 
constant pool: 19.</action>
     </release>
 
     <release version="6.1" date="2017-09-14" description="Experimental Java 9 
Support">

Modified: 
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/Constant.java
URL: 
http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/Constant.java?rev=1816488&r1=1816487&r2=1816488&view=diff
==============================================================================
--- 
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/Constant.java 
(original)
+++ 
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/Constant.java 
Mon Nov 27 18:51:55 2017
@@ -163,6 +163,8 @@ public abstract class Constant implement
                 return new ConstantMethodType(input);
             case Const.CONSTANT_InvokeDynamic:
                 return new ConstantInvokeDynamic(input);
+            case Const.CONSTANT_Module:
+                return new ConstantModule(input);
             default:
                 throw new ClassFormatException("Invalid byte tag in constant 
pool: " + b);
         }


Reply via email to