Skip to content

Commit

Permalink
JavaLeakTests: workaround for error in JDK #1664
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T authored and jukzi committed Nov 11, 2024
1 parent 0871ea2 commit 24e0b7e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ private void followFieldReference(ReferencedObject ref, Object curr, Field fld)
if (fieldVal != null) {
fQueue.add(new ReferencedFieldElement(ref, fld, fieldVal));
}
} catch (IllegalArgumentException e) {
// XXX workaround for error in JDK: https://bugs.openjdk.org/browse/JDK-8337622
if (!"Can not get final java.lang.Class field java.lang.Class.componentType on java.lang.Class".equals(e.getMessage())) {
throw e;
}
} catch (IllegalAccessException e) {
handleError(e, fld);
}
Expand Down

0 comments on commit 24e0b7e

Please sign in to comment.