[ 
https://issues.apache.org/jira/browse/FLINK-13460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16900114#comment-16900114
 ] 

Stephan Ewen commented on FLINK-13460:
--------------------------------------

If we refactor all these tests now, would be good to also clean this up a bit, 
like avoid binary class code in the utils class, consolidate it with the other 
ClassLoaderUtils.

> 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
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.10.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
>  
> 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)

Reply via email to