Skip to content

Commit

Permalink
Fixes testBug519493_003 - module binding on class symbol
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker committed Jul 19, 2024
1 parent d51ed7c commit 2dd9a99
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2dd9a99

Please sign in to comment.