Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8309635

Remove the old core reflection implementation

    XMLWordPrintable

Details

    • CSR
    • Resolution: Approved
    • P4
    • 22
    • core-libs
    • None
    • behavioral
    • low
    • The `-Djdk.reflect.useDirectMethodHandle=false` workaround to enable the old core reflection implementation will stop to work.
    • System or security property
    • JDK

    Description

      Summary

      Remove the old core reflection implementation.

      Problem

      JEP 416 reimplemented the core reflection implementation with method handles in JDK 18. The -Djdk.reflect.useDirectMethodHandle=false was introduced to enable the old core reflection implementation to mitigate any compatibility issue. There has only been a couple of issues about the exception being thrown for invalid arguments. No other issue reported. It's time to remove the old core reflection implementation.

      Solution

      Remove the old core reflection implementation.

      Specification

      The -Djdk.reflect.useDirectMethodHandle=false workaround will stop to work.

      Attachments

        Issue Links

          Activity

            People

              mchung Mandy Chung
              mchung Mandy Chung
              Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: