Browse Source

Merge pull request #467 from shifujun/453

Remove DUP check in TransformNewClass
tags/rel_3_30_0_ga
Shigeru Chiba 4 months ago
parent
commit
fbd20b1e11
No account linked to committer's email address
1 changed files with 0 additions and 3 deletions
  1. 0
    3
      src/main/javassist/convert/TransformNewClass.java

+ 0
- 3
src/main/javassist/convert/TransformNewClass.java View File

@@ -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);

Loading…
Cancel
Save