Skip to content

Commit

Permalink
fix builtin enum crash
Browse files Browse the repository at this point in the history
  • Loading branch information
gmerr3 committed Nov 5, 2024
1 parent 3414fa6 commit 1447a23
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1588,6 +1588,9 @@ public boolean updatedAddedTargetFilesForPotentialEnum(FieldAccessExpr expr) {
return false;
}
if (resolved.isEnumConstant()) {
if (JavaLangUtils.inJdkPackage(resolved.getType().describe())) {
return true;
}
String filePathName = qualifiedNameToFilePath(resolved.getType().describe());
if (!addedTargetFiles.contains(filePathName)) {
gotException();
Expand Down

0 comments on commit 1447a23

Please sign in to comment.