aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/convert/TransformNewClass.java
diff options
context:
space:
mode:
authorshifujun <shifujun@foxmail.com>2023-12-08 21:36:45 +0800
committershifujun <shifujun@foxmail.com>2023-12-08 21:36:45 +0800
commit9e1b19e22e5884335d2f4d36b15728d5546c64f1 (patch)
treee43802cd87fbff1ae587cba84dc2440ce8950791 /src/main/javassist/convert/TransformNewClass.java
parent158294371e39b24f003f15933bd74f2b26bbf3aa (diff)
downloadjavassist-9e1b19e22e5884335d2f4d36b15728d5546c64f1.tar.gz
javassist-9e1b19e22e5884335d2f4d36b15728d5546c64f1.zip
Remove DUP check in TransformNewClass
DUP usually come after NEW, but not necessary. #453
Diffstat (limited to 'src/main/javassist/convert/TransformNewClass.java')
-rw-r--r--src/main/javassist/convert/TransformNewClass.java3
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);