From bb1e49f56fcb3adc9d86f4756e195d90601458ff Mon Sep 17 00:00:00 2001 From: Rob Stryker Date: Fri, 3 May 2024 01:46:04 -0400 Subject: [PATCH] Partial fix for ASTConverter15JLS8Test.test0032 - missing superinterface Signed-off-by: Rob Stryker --- .../src/org/eclipse/jdt/core/dom/JavacConverter.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java index dfe22c0fb24..47150ea8436 100644 --- a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java +++ b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java @@ -424,11 +424,9 @@ private AbstractTypeDeclaration convertClassDecl(JCClassDecl javacClassDecl, AST Iterator 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); } } }