commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1697927 - /commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/ConstantInvokeDynamic.java
Date Wed, 26 Aug 2015 13:31:45 GMT
Author: sebb
Date: Wed Aug 26 13:31:44 2015
New Revision: 1697927

URL: http://svn.apache.org/r1697927
Log:
Use recursive construction

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/ConstantInvokeDynamic.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/ConstantInvokeDynamic.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/ConstantInvokeDynamic.java?rev=1697927&r1=1697926&r2=1697927&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/ConstantInvokeDynamic.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/ConstantInvokeDynamic.java
Wed Aug 26 13:31:44 2015
@@ -37,7 +37,7 @@ public final class ConstantInvokeDynamic
      * Initialize from another object.
      */
     public ConstantInvokeDynamic(ConstantInvokeDynamic c) {
-        super(Constants.CONSTANT_InvokeDynamic, c.getBootstrapMethodAttrIndex(), c.getNameAndTypeIndex());
+        this(c.getBootstrapMethodAttrIndex(), c.getNameAndTypeIndex());
     }
 
 
@@ -48,7 +48,7 @@ public final class ConstantInvokeDynamic
      * @throws IOException
      */
     ConstantInvokeDynamic(DataInput file) throws IOException {
-        super(Constants.CONSTANT_InvokeDynamic, file);
+        this(file.readShort(), file.readShort());
     }
 
 



Mime
View raw message