Fixed #2077 AS3 allow star string as property name (XML access)

This commit is contained in:
Jindra Petřík
2023-09-22 23:19:33 +02:00
parent a157338f4d
commit 97d04cbedd
13 changed files with 125 additions and 4 deletions

View File

@@ -135,7 +135,12 @@ public class FullMultinameAVM2Item extends AVM2Item {
AVM2ConstantPool constants = localData.constantsAvm2;
List<DottedChain> fullyQualifiedNames = property ? new ArrayList<>() : localData.fullyQualifiedNames;
if (multinameIndex > 0 && multinameIndex < constants.getMultinameCount()) {
writer.append(constants.getMultiname(multinameIndex).getNameWithCustomNamespace(localData.abc, fullyQualifiedNames, false, true));
String simpleName = constants.getMultiname(multinameIndex).getName(constants, fullyQualifiedNames, true, false);
if ("*".equals(simpleName)) {
writer.append("*");
} else {
writer.append(constants.getMultiname(multinameIndex).getNameWithCustomNamespace(localData.abc, fullyQualifiedNames, false, true));
}
} else {
writer.append("§§multiname(").append(multinameIndex).append(")");
}