mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-13 09:28:57 +00:00
Issue #1283 AS3 Unbounded Vector - Vector<*> decompilation and direct editation fix
This commit is contained in:
@@ -2688,7 +2688,7 @@ public class AVM2SourceGenerator implements SourceGenerator {
|
||||
int[] params = new int[atype.params.size()];
|
||||
int i = 0;
|
||||
for (GraphTargetItem s : atype.params) {
|
||||
params[i++] = resolveType(localData, s, abcIndex);
|
||||
params[i++] = (s instanceof NullAVM2Item) ? 0 : resolveType(localData, s, abcIndex);
|
||||
}
|
||||
return constants.getMultinameId(Multiname.createTypeName(name_index, params), true);
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instructions;
|
||||
import com.jpexs.decompiler.flash.abc.avm2.instructions.other.FindPropertyStrictIns;
|
||||
import com.jpexs.decompiler.flash.abc.avm2.model.ApplyTypeAVM2Item;
|
||||
import com.jpexs.decompiler.flash.abc.avm2.model.InitVectorAVM2Item;
|
||||
import com.jpexs.decompiler.flash.abc.avm2.model.NullAVM2Item;
|
||||
import com.jpexs.decompiler.flash.abc.types.MethodBody;
|
||||
import com.jpexs.decompiler.flash.abc.types.Multiname;
|
||||
import com.jpexs.decompiler.flash.abc.types.Namespace;
|
||||
@@ -115,6 +116,9 @@ public class PropertyAVM2Item extends AssignableAVM2Item {
|
||||
if (r == null) {
|
||||
return null;
|
||||
}
|
||||
if (pm == 0) {
|
||||
r = new NullAVM2Item(null, null);
|
||||
}
|
||||
params.add(r);
|
||||
}
|
||||
return new ApplyTypeAVM2Item(null, null, obj, params);
|
||||
|
||||
Reference in New Issue
Block a user