8149835: StringConcatFactory should emit classes with the same package as the host class
authorshade
Wed, 17 Feb 2016 19:29:25 +0300
changeset 36041 bfcede0994e5
parent 36040 a664cd8faf9c
child 36042 885eb5258cc4
8149835: StringConcatFactory should emit classes with the same package as the host class Reviewed-by: psandoz, alanb, mchung
langtools/test/tools/javac/TestIndyStringConcat.java
--- a/langtools/test/tools/javac/TestIndyStringConcat.java	Mon Feb 15 22:21:39 2016 -0800
+++ b/langtools/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;