Skip to content

Commit a3d54e0

Browse files
author
Rob Stryker
committed
Fixes testBug519493_003 - module binding on class symbol
Signed-off-by: Rob Stryker <stryker@redhat.com>
1 parent 1901a3c commit a3d54e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,9 @@ public boolean isWildcardType() {
11941194
@Override
11951195
public IModuleBinding getModule() {
11961196
Symbol o = this.type.tsym.owner;
1197+
if( o instanceof ClassSymbol cs) {
1198+
o = cs.owner;
1199+
}
11971200
if( o instanceof PackageSymbol ps) {
11981201
return this.resolver.bindings.getModuleBinding(ps.modle);
11991202
}

0 commit comments

Comments
 (0)