diff options
author | Andy Clement <aclement@pivotal.io> | 2022-01-06 22:18:21 -0800 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2022-01-06 22:18:21 -0800 |
commit | 92779d0829d41d55cae300d4d4d5a67cff72916d (patch) | |
tree | 417757a4e9ad7244e2f996c3c34cb4e5fcc75f62 | |
parent | 4021ffcbfe320a1b91bb2bcee7a112f7122ef82d (diff) | |
download | aspectj-92779d0829d41d55cae300d4d4d5a67cff72916d.tar.gz aspectj-92779d0829d41d55cae300d4d4d5a67cff72916d.zip |
Fix ConstantDynamic to use the right tag.
The class ConstantDynamic was incorrectly using the `InvokeDynamic` tag
during construction which meant after reading in code containing a
`Dynamic` reference, it would incorrectly be written out as an
`InvokeDynamic` reference. There is not much code out there using
Dynamic so wasn't uncovered before.
Fixes #68
-rw-r--r-- | bcel-builder/src/main/java/org/aspectj/apache/bcel/classfile/ConstantDynamic.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bcel-builder/src/main/java/org/aspectj/apache/bcel/classfile/ConstantDynamic.java b/bcel-builder/src/main/java/org/aspectj/apache/bcel/classfile/ConstantDynamic.java index ad9eb3049..fc240e6fe 100644 --- a/bcel-builder/src/main/java/org/aspectj/apache/bcel/classfile/ConstantDynamic.java +++ b/bcel-builder/src/main/java/org/aspectj/apache/bcel/classfile/ConstantDynamic.java @@ -78,7 +78,7 @@ public final class ConstantDynamic extends Constant { } public ConstantDynamic(int readUnsignedShort, int nameAndTypeIndex) { - super(Constants.CONSTANT_InvokeDynamic); + super(Constants.CONSTANT_Dynamic); this.bootstrapMethodAttrIndex = readUnsignedShort; this.nameAndTypeIndex = nameAndTypeIndex; } |