Fixed: #2276 Protected namespaces do not use fully qualified names

This commit is contained in:
Jindra Petřík
2024-08-13 21:36:50 +02:00
parent e499fc57a1
commit 00535350bb
11 changed files with 371 additions and 331 deletions

View File

@@ -684,12 +684,10 @@ public class Multiname {
if (identifier != null && !identifier.isEmpty()) {
return nsname + "::" + name;
}
} else {
//???
}
}
if (fullyQualifiedNames != null && !fullyQualifiedNames.isEmpty() && fullyQualifiedNames.contains(DottedChain.parseWithSuffix(name))) {
if (nskind == Namespace.KIND_PACKAGE && fullyQualifiedNames != null && !fullyQualifiedNames.isEmpty() && fullyQualifiedNames.contains(DottedChain.parseWithSuffix(name))) {
DottedChain dc = getNameWithNamespace(abc.constants, withSuffix);
return dontDeobfuscate ? dc.toRawString() : dc.toPrintableString(true);
}