RFR (XS) 8252120: compiler/oracle/TestCompileCommand.java misspells "occured"

Aleksey Shipilev shade at redhat.com
Thu Aug 20 15:02:59 UTC 2020


Bug:
   https://bugs.openjdk.java.net/browse/JDK-8252120

Noticed this while reading some related test code. There is no way VM could emit the message the 
assert checks, which means the assert always passes. See the history in the bug.

Fix:

diff -r 53629f4016c6 test/hotspot/jtreg/compiler/oracle/TestCompileCommand.java
--- a/test/hotspot/jtreg/compiler/oracle/TestCompileCommand.java        Thu Aug 20 11:42:12 2020 +0100
+++ b/test/hotspot/jtreg/compiler/oracle/TestCompileCommand.java        Thu Aug 20 17:01:40 2020 +0200
@@ -63,5 +63,5 @@
          }

-        out.shouldNotContain("CompileCommand: An error occured during parsing");
+        out.shouldNotContain("CompileCommand: An error occurred during parsing");
          out.shouldHaveExitValue(0);
      }


Testing: affected test

-- 
Thanks,
-Aleksey



More information about the hotspot-compiler-dev mailing list