Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
The method Unsafe.defineClass() is removed in Java 11.
To support Java 11, we need to rework the method CommonTestUtils.createClassNotInClassPath() to use a different mechanism.
Java 11 introduces a new way to define a class from byte code via MethodHandles. However, because these do not exist in Java 8, we cannot use them if we want to keep supporting Java 8, which we most likely want to do for quite a while.
Attachments
Issue Links
- is related to
-
FLINK-13451 Rework CommonTestUtils.createClassNotInClassPath() to not use Unsafe.defineClass()
- Closed
-
FLINK-13650 Consolidate classloading utils from CommonTestUtils with ClassLoaderUtils
- Closed
- links to