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

Reflection API defend against issues with internal VM derived value type

XMLWordPrintable


      The minimal value types (MVT) implementation creates Derive Value Type (DVT) from an experiment API for a given "Value Capable Class" (VCC).

      Current implementation creates a new value type class with a name mangled from the VCC name as such: "VCC$Value". See:

      http://hg.openjdk.java.net/valhalla/valhalla/jdk/file/tip/src/java.base/share/classes/valhalla/shady/MinimalValueTypes_1_0.java

      1) It would be undesirable for "Class.forName()" to be capable of returning such a DVT class.

      2) standard core reflection API behavior for such a type doesn't make sense in many cases, e.g. "dvtClass.newInstance()"

            mchung Mandy Chung (Inactive)
            dsimms David Simms
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: