changeset 3471:28bc1393dbdc

8149835: StringConcatFactory should emit classes with the same package as the host class Reviewed-by: psandoz, alanb, mchung
author shade
date Wed, 17 Feb 2016 19:29:25 +0300
parents a910d5c72bbc
children fb1ccb29bf7f
files test/tools/javac/TestIndyStringConcat.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/TestIndyStringConcat.java	Mon Feb 15 22:21:39 2016 -0800
+++ b/test/tools/javac/TestIndyStringConcat.java	Wed Feb 17 19:29:25 2016 +0300
@@ -60,7 +60,7 @@
             boolean indifiedStringConcat = false;
             ex.printStackTrace();
             for (StackTraceElement e : ex.getStackTrace()) {
-                if (e.getClassName().startsWith("java.lang.String$Concat") &&
+                if (e.getClassName().contains("$$StringConcat") &&
                         e.getMethodName().equals("concat")) {
                     indifiedStringConcat = true;
                     break;