Skip to content

Commit

Permalink
GROOVY-11481: package-private anonymous inner class
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Sep 19, 2024
1 parent 2930ead commit 5e6bf46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3414,7 +3414,7 @@ public InnerClassNode visitAnonymousInnerClassDeclaration(final AnonymousInnerCl
// and remove the final modifier from superClass to allow the sub class
superClass.setModifiers(superClass.getModifiers() & ~Opcodes.ACC_FINAL);
} else {
anonymousInnerClass = new InnerClassNode(outerClass, innerClassName, Opcodes.ACC_PUBLIC, superClass);
anonymousInnerClass = new InnerClassNode(outerClass, innerClassName, 0, superClass);
}

anonymousInnerClass.setAnonymous(true);
Expand Down

0 comments on commit 5e6bf46

Please sign in to comment.