From 2dd9a993512df2e5cc17b51d5e98e76e4173b50b Mon Sep 17 00:00:00 2001 From: Rob Stryker Date: Fri, 19 Jul 2024 11:59:59 -0400 Subject: [PATCH] Fixes testBug519493_003 - module binding on class symbol Signed-off-by: Rob Stryker --- .../org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java | 3 +++ 1 file changed, 3 insertions(+) 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); }