mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-13 16:48:13 +00:00
Fixed: #1610 AS3 unnecessary adding namespaces
This commit is contained in:
@@ -33,6 +33,7 @@ All notable changes to this project will be documented in this file.
|
||||
- Graphviz Graph not showing AS3 exception end
|
||||
- #1609 First frame missing in frame to PDF export
|
||||
- AS3 with statement decompilation
|
||||
- AS3 unnecessary adding namespaces
|
||||
|
||||
### Changed
|
||||
- #1565, #1407, #1350 On BinaryData SWF save, parent SWF is saved
|
||||
|
||||
@@ -217,7 +217,17 @@ public class TraitClass extends Trait implements TraitWithSlot {
|
||||
|
||||
AbcIndexing index = new AbcIndexing(abc.getSwf());
|
||||
//for simplification of String(this)
|
||||
convertData.thisHasDefaultToPrimitive = null == index.findProperty(new AbcIndexing.PropertyDef("toString", new TypeItem(instanceInfo.getName(abc.constants).getNameWithNamespace(abc.constants, true)), abc, abc.constants.getNamespaceId(Namespace.KIND_PACKAGE, DottedChain.TOPLEVEL, abc.constants.getStringId("", true), true)), false, true);
|
||||
int sIndex = abc.constants.getStringId("", false);
|
||||
if (sIndex > -1) {
|
||||
int nsIndex = abc.constants.getNamespaceId(Namespace.KIND_PACKAGE, DottedChain.TOPLEVEL, sIndex, false);
|
||||
if (nsIndex > -1) {
|
||||
convertData.thisHasDefaultToPrimitive = null == index.findProperty(new AbcIndexing.PropertyDef("toString", new TypeItem(instanceInfo.getName(abc.constants).getNameWithNamespace(abc.constants, true)), abc, nsIndex), false, true);
|
||||
} else {
|
||||
convertData.thisHasDefaultToPrimitive = true;
|
||||
}
|
||||
} else {
|
||||
convertData.thisHasDefaultToPrimitive = true;
|
||||
}
|
||||
|
||||
//class initializer
|
||||
int bodyIndex = abc.findBodyIndex(classInfo.cinit_index);
|
||||
|
||||
Reference in New Issue
Block a user