Details
-
Task
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
Description
Since Java 16, certain kinds of reflective access is no longer allowed. Check JEP 396 on strong encapsulation for more details: https://openjdk.org/jeps/396
One such example in our code is the usage of Field.setAccessible(true) in ObjectSizeCalculator. This code will throw InaccessibleObjectException when running on jdk16 or higher. We should avoid such illegal reflective access.
Attachments
Issue Links
- links to