8151904: test/java/lang/StackWalker/VerifyStackTrace.java needs to handle update releases
authormli
Tue, 24 May 2016 18:41:31 -0700
changeset 38554 6bb9dce6c3a9
parent 38553 0553095041d7
child 38555 74f0c0bf9c21
8151904: test/java/lang/StackWalker/VerifyStackTrace.java needs to handle update releases Reviewed-by: dfuchs, mchung
jdk/test/java/lang/StackWalker/VerifyStackTrace.java
--- a/jdk/test/java/lang/StackWalker/VerifyStackTrace.java	Tue May 24 13:51:35 2016 -0700
+++ b/jdk/test/java/lang/StackWalker/VerifyStackTrace.java	Tue May 24 18:41:31 2016 -0700
@@ -202,7 +202,7 @@
             // synthetic frames introduced by lambdas & method handles
             return produced.replaceAll(":[1-9][0-9]*\\)", ":00)")
                     .replaceAll("-internal/", "/").replaceAll("-ea/", "/")
-                    .replaceAll("java.base@[0-9]+/", "java.base/")
+                    .replaceAll("java.base@(\\d+\\.){0,3}(\\d+)/", "java.base/")
                     .replaceAll("/[0-9]+\\.run", "/xxxxxxxx.run")
                     .replaceAll("/[0-9]+\\.invoke", "/xxxxxxxx.invoke")
                     .replaceAll("\\$[0-9]+", "\\$??");