8185803: JdbExprTest.sh fails in JDK10-hs nightly due to "Name unknown: java.lang.Long.MAX_VALUE "
authorcjplummer
Fri, 18 May 2018 14:21:59 -0700
changeset 50185 97be261ebcdd
parent 50184 1a4101ebec92
child 50186 5ec7380f671d
8185803: JdbExprTest.sh fails in JDK10-hs nightly due to "Name unknown: java.lang.Long.MAX_VALUE " Summary: Initialize java.lang.Long before referencing it Reviewed-by: dholmes, dcubed
test/jdk/ProblemList.txt
test/jdk/com/sun/jdi/JdbExprTest.sh
--- a/test/jdk/ProblemList.txt	Fri May 18 15:56:42 2018 -0400
+++ b/test/jdk/ProblemList.txt	Fri May 18 14:21:59 2018 -0700
@@ -774,7 +774,7 @@
 
 com/sun/jdi/RedefineImplementor.sh                              8004127 generic-all
 
-com/sun/jdi/JdbExprTest.sh                                      8185803 generic-all
+com/sun/jdi/JdbExprTest.sh                                      8203393 solaris-all
 
 com/sun/jdi/JdbMethodExitTest.sh                                8171483 generic-all
 
@@ -830,4 +830,4 @@
 jdk/jfr/event/io/TestInstrumentation.java                       8202142    generic-all
 jdk/jfr/event/sampling/TestNative.java                          8202142    generic-all
 jdk/jfr/event/os/TestSystemProcess.java                         8202835    linux-all
-jdk/jfr/event/runtime/TestBiasedLockRevocationEvents.java       8203237    generic-all
\ No newline at end of file
+jdk/jfr/event/runtime/TestBiasedLockRevocationEvents.java       8203237    generic-all
--- a/test/jdk/com/sun/jdi/JdbExprTest.sh	Fri May 18 15:56:42 2018 -0400
+++ b/test/jdk/com/sun/jdi/JdbExprTest.sh	Fri May 18 14:21:59 2018 -0700
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 #
-# Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,6 @@
 #  @test
 #  @bug 4660158
 #  @author Staffan Larsen
-#  @requires os.family != "windows"
 #  @key intermittent
 #  @run shell JdbExprTest.sh
 
@@ -47,6 +46,7 @@
 
 class $classname {
 
+    static Long lMax = new Long(java.lang.Long.MAX_VALUE); // force initialization of Long class
     static long aLong;
     static int anInt;
     static boolean aBoolean;