Replace "." with "_" in package$src class name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user