Skip to content

Commit

Permalink
Partial fix for ASTConverter15JLS8Test.test0032 - missing superinterface
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 May 3, 2024
1 parent 630f569 commit ffec5b6
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,9 @@ private AbstractTypeDeclaration convertClassDecl(JCClassDecl javacClassDecl, AST
Iterator<JCExpression> it = javacClassDecl.getImplementsClause().iterator();
while(it.hasNext()) {
JCExpression next = it.next();
if( next instanceof JCFieldAccess jcfa ) {
String pack = jcfa.selected == null ? null : jcfa.selected.toString();
typeDeclaration.superInterfaces().add(convert(jcfa.name, pack));
} else if( next instanceof JCIdent jcid ) {
typeDeclaration.superInterfaces().add(convert(jcid.name, null));
Name m = toName(next);
if( m != null ) {
typeDeclaration.superInterfaces().add(m);
}
}
}
Expand Down

0 comments on commit ffec5b6

Please sign in to comment.