-
Bug
-
Resolution: Fixed
-
P3
-
repo-valhalla
Hotspot Internal Error with slowdebug build.
When using Reflection to invoke an inline class default constructor (aka static method).
----
import java.lang.reflect.Constructor;
public inline class Point2 {
public static void main(String[] args) throws Exception {
Constructor<?> c = Point2.class.getConstructor();
c.newInstance();
}
public int x;
public int y;
public Point2 () {
x = 10;
y = 20;
}
}
# guarantee(_is_return && t == _return_type) failed: return type does not match: 14 : 12
(modified to print actual, expected type - T_VALUETYPE vs T_OBJECT).
When using Reflection to invoke an inline class default constructor (aka static method).
----
import java.lang.reflect.Constructor;
public inline class Point2 {
public static void main(String[] args) throws Exception {
Constructor<?> c = Point2.class.getConstructor();
c.newInstance();
}
public int x;
public int y;
public Point2 () {
x = 10;
y = 20;
}
}
# guarantee(_is_return && t == _return_type) failed: return type does not match: 14 : 12
(modified to print actual, expected type - T_VALUETYPE vs T_OBJECT).
- blocks
-
JDK-8223349 [lworld] core reflection support on static <init> factory methods for inline types
-
- Resolved
-