-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 10
-
Component/s: core-libs
-
Environment:
Project repository: http://hg.openjdk.java.net/valhalla/valhalla
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()"
- relates to
-
JDK-8183111 [MVT] java.lang.Class::isAssignableFrom() C2 intrinsic does not support value types
-
- Resolved
-