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

Remove the old core reflection implementation

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 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

      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.

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

              Created:
              Updated:
              Resolved: