Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-10725 Support for Java 11 (LTS)
  3. FLINK-13460

Rework SerializedThrowableTest to not use Unsafe.defineClass()

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              chesnay Chesnay Schepler
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m