Skip to content

Commit

Permalink
Partial fix for ASTConverter15JLS8Test.test0046 - missing superclass
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 bb1e49f commit 080cdd2
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,9 @@ private AbstractTypeDeclaration convertClassDecl(JCClassDecl javacClassDecl, AST
typeDeclaration.setSuperclassType(convertToType(javacClassDecl.getExtendsClause()));
} else {
JCExpression e = javacClassDecl.getExtendsClause();
if( e instanceof JCFieldAccess jcfa) {
String pack = jcfa.selected == null ? null : jcfa.selected.toString();
typeDeclaration.setSuperclass(convert(jcfa.name, pack));
} else if( e instanceof JCIdent jcid) {
typeDeclaration.setSuperclass(convert(jcid.name, null));
Name m = toName(e);
if( m != null ) {
typeDeclaration.setSuperclass(m);
}
}
}
Expand Down

0 comments on commit 080cdd2

Please sign in to comment.