8170886: compiler/ciReplay/TestSAServer.java intermittently throws NumberFormatException
Reviewed-by: thartmann
--- 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();