Skip to content

Commit

Permalink
Merge pull request jboss-javassist#467 from shifujun/453
Browse files Browse the repository at this point in the history
Remove DUP check in TransformNewClass
  • Loading branch information
chibash authored Dec 9, 2023
2 parents cbb59bd + 9e1b19e commit fbd20b1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/javassist/convert/TransformNewClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ public int transform(CtClass clazz, int pos, CodeIterator iterator,
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);
Expand Down

0 comments on commit fbd20b1

Please sign in to comment.