-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P3
-
Affects Version/s: repo-valhalla
-
Component/s: core-libs
-
In Review
Since JDK-8373806 (disable patching), simple Test case fails when using exploded-image:
public class Test {
static value class IntBox {
Integer integerValue;
public IntBox(Integer integerValue) {
this.integerValue = integerValue;
}
}
public static void main(String[] args) {
IntBox val1 = new IntBox(0);
IntBox val2 = new IntBox(0);
if (val1 != val2) throw new RuntimeException("FAIL");
}
}
$> make exploded-image && build/$CONF_NAME/jdk/bin/javac --enable--preview --source 26 Test.java && build/$CONF_NAME/jdk/bin/java --enable--preview Test
Exception in thread "main" java.lang.RuntimeException: FAIL
at Test.main(Test.java:13)
$> make && build/$CONF_NAME/images/jdk/bin/java --enable--preview Test && echo $?
0
public class Test {
static value class IntBox {
Integer integerValue;
public IntBox(Integer integerValue) {
this.integerValue = integerValue;
}
}
public static void main(String[] args) {
IntBox val1 = new IntBox(0);
IntBox val2 = new IntBox(0);
if (val1 != val2) throw new RuntimeException("FAIL");
}
}
$> make exploded-image && build/$CONF_NAME/jdk/bin/javac --enable--preview --source 26 Test.java && build/$CONF_NAME/jdk/bin/java --enable--preview Test
Exception in thread "main" java.lang.RuntimeException: FAIL
at Test.main(Test.java:13)
$> make && build/$CONF_NAME/images/jdk/bin/java --enable--preview Test && echo $?
0
- caused by
-
JDK-8373806 [lworld] Disable preview patching by default
-
- Resolved
-
- links to
-
Review(lworld)
openjdk/valhalla/1845
-
Review(lworld)
openjdk/valhalla/1854