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 29, 2024
1 parent 96f3398 commit ed34fba
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,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(EnumConstantDeclaration enumConstant) {
resolve();
Expand Down

0 comments on commit ed34fba

Please sign in to comment.