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 fc30c364eb1..b2a0655de0e 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 @@ -829,6 +829,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); }