diff options
author | Shigeru Chiba <chibash@users.noreply.github.com> | 2023-12-10 00:49:49 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-10 00:49:49 +0900 |
commit | fbd20b1e112b3e74f6d970a8ced839e8ee0bab87 (patch) | |
tree | b43dfc4c6bae5e92fa61e85c61088bf92aaec3ca | |
parent | cbb59bda5d7a2252d0fff5aeeb42d1f1c699e021 (diff) | |
parent | 9e1b19e22e5884335d2f4d36b15728d5546c64f1 (diff) | |
download | javassist-fbd20b1e112b3e74f6d970a8ced839e8ee0bab87.tar.gz javassist-fbd20b1e112b3e74f6d970a8ced839e8ee0bab87.zip |
Merge pull request #467 from shifujun/453
Remove DUP check in TransformNewClass
-rw-r--r-- | src/main/javassist/convert/TransformNewClass.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/main/javassist/convert/TransformNewClass.java b/src/main/javassist/convert/TransformNewClass.java index 83f2a0cc..56738a10 100644 --- a/src/main/javassist/convert/TransformNewClass.java +++ b/src/main/javassist/convert/TransformNewClass.java @@ -56,9 +56,6 @@ final public class TransformNewClass extends Transformer { if (c == NEW) { index = iterator.u16bitAt(pos + 1); if (cp.getClassInfo(index).equals(classname)) { - if (iterator.byteAt(pos + 3) != DUP) - throw new CannotCompileException( - "NEW followed by no DUP was found"); if (newClassIndex == 0) newClassIndex = cp.addClassInfo(newClassName); |