8149835: StringConcatFactory should emit classes with the same package as the host class
Reviewed-by: psandoz, alanb, mchung
--- 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;