diff --git a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java index 7171b6b401d..e89a7888109 100644 --- a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java +++ b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java @@ -827,6 +827,9 @@ public boolean isWildcardType() { @Override public IModuleBinding getModule() { Symbol o = this.type.tsym.owner; + if( o instanceof ClassSymbol cs) { + o = cs.owner; + } if( o instanceof PackageSymbol ps) { return this.resolver.bindings.getModuleBinding(ps.modle); }