RFR (S) 8149835: StringConcatFactory should emit classes with the same package as the host class

Andrej Golovnin andrej.golovnin at gmail.com
Tue Feb 16 20:59:14 UTC 2016


Hi Aleksey,

>  http://cr.openjdk.java.net/~shade/8149835/webrev.jdk.01/

701                     return (pkg != null ? pkg.getName().replace(".", "/") + "/" : "") + "Stubs$$StringConcat";
702                 } else {
703                     return hostClass.getName().replace(".", "/") + "$$StringConcat”;

Maybe you should use here the character based String#replace()-method as it is faster and
does not produce as much garbage as the CharSequence based method does.

Best regards,
Andrej Golovnin


More information about the core-libs-dev mailing list