8170886: compiler/ciReplay/TestSAServer.java intermittently throws NumberFormatException
authordpochepk
Tue, 20 Dec 2016 17:35:20 +0300
changeset 42898 af1346a135ce
parent 42897 57e7b1c75d17
child 42899 b9ae8968fce6
child 42900 ff634f19e82c
8170886: compiler/ciReplay/TestSAServer.java intermittently throws NumberFormatException Reviewed-by: thartmann
hotspot/test/compiler/ciReplay/CiReplayBase.java
--- a/hotspot/test/compiler/ciReplay/CiReplayBase.java	Tue Dec 20 14:55:18 2016 +0100
+++ b/hotspot/test/compiler/ciReplay/CiReplayBase.java	Tue Dec 20 17:35:20 2016 +0300
@@ -215,7 +215,7 @@
         try(BufferedReader br = new BufferedReader(new FileReader(REPLAY_FILE_NAME))) {
             return br.lines()
                     .filter(s -> s.startsWith("compile "))
-                    .map(s -> s.substring(s.lastIndexOf(' ') + 1))
+                    .map(s -> s.split("\\s+")[5])
                     .map(Integer::parseInt)
                     .findAny()
                     .get();