changeset 42898:af1346a135ce

8170886: compiler/ciReplay/TestSAServer.java intermittently throws NumberFormatException Reviewed-by: thartmann
author dpochepk
date Tue, 20 Dec 2016 17:35:20 +0300
parents 57e7b1c75d17
children b9ae8968fce6 ff634f19e82c
files hotspot/test/compiler/ciReplay/CiReplayBase.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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();