Replace "." with "_" in package$src class name

This commit is contained in:
Natalia.Ukhorskaya
2013-03-01 14:47:09 +04:00
parent 75528e0a4a
commit a9415204f6
@@ -303,7 +303,11 @@ public class NamespaceCodegen extends MemberCodegen {
// dollar sign in the end is to prevent synthetic class from having "Test" or other parseable suffix
// path hashCode to prevent same name / different path collision
return namespaceInternalName + "$src$" + name.substring(substringFrom, substringTo) + "$" + pathHashCode;
return namespaceInternalName + "$src$" + replaceSpecialSymbols(name.substring(substringFrom, substringTo)) + "$" + pathHashCode;
}
private static String replaceSpecialSymbols(@NotNull String str) {
return str.replace('.', '_');
}
@NotNull