You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2019/07/29 07:57:00 UTC

[jira] [Created] (FLINK-13460) Rework SerializedThrowableTest to not use Unsafe.defineClass()

Chesnay Schepler created FLINK-13460:
----------------------------------------

             Summary: Rework SerializedThrowableTest to not use Unsafe.defineClass()
                 Key: FLINK-13460
                 URL: https://issues.apache.org/jira/browse/FLINK-13460
             Project: Flink
          Issue Type: Sub-task
          Components: Tests
            Reporter: Chesnay Schepler
            Assignee: Chesnay Schepler
             Fix For: 1.10.0


 
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.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)