Skip to content

Commit

Permalink
Fix test0027 in ASTConverter15JLS8Test
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker committed May 22, 2024
1 parent 2cd8665 commit 6f322e6
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,17 @@ IBinding resolveNameToJavac(Name name, JCTree tree) {
return null;
}

IVariableBinding resolveVariable(EnumConstantDeclaration enumConstant) {
resolve();
Object o = this.converter.domToJavac.get(enumConstant);
if (o instanceof JCVariableDecl decl) {
if (!decl.type.isErroneous() || this.isRecoveringBindings) {
return canonicalize(new JavacVariableBinding(decl.sym, this));
}
}
return null;
}

@Override
IVariableBinding resolveVariable(VariableDeclaration variable) {
resolve();
Expand Down

0 comments on commit 6f322e6

Please sign in to comment.