Skip to content

Commit

Permalink
test011 - No idea why jls2 doesn't use interface flag
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker committed Apr 2, 2024
1 parent e03c9c4 commit 87eae2b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ private AbstractTypeDeclaration convertClassDecl(JCClassDecl javacClassDecl, AST
if( this.ast.apiLevel != AST.JLS2_INTERNAL) {
res.modifiers().addAll(convert(javacClassDecl.mods));
} else {
res.internalSetModifiers(getJLS2ModifiersFlags(javacClassDecl.mods));
int jls2Flags = getJLS2ModifiersFlags(javacClassDecl.mods);
jls2Flags &= ~Flags.INTERFACE; // remove AccInterface flags, see ASTConverter
res.internalSetModifiers(jls2Flags);
}
if (res instanceof TypeDeclaration typeDeclaration) {
if (javacClassDecl.getExtendsClause() != null) {
Expand Down

0 comments on commit 87eae2b

Please sign in to comment.