From ca2815f0c971e608d2469ee26fe53186b2f9dd33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 27 Nov 2021 10:05:25 +0100 Subject: [PATCH] Fixed AS2 - class detection - ignore standalone directvalues --- CHANGELOG.md | 1 + .../decompiler/flash/action/ActionScript2ClassDetector.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 534fa041e..3581340f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ All notable changes to this project will be documented in this file. - AS2 - class detection of top level classes - AS2 - class detection - warning only if propertyname does not match getter/setter - AS2 - some minor cases in class detection +- AS2 - class detection - ignore standalone directvalues ## [14.6.0] - 2021-11-22 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScript2ClassDetector.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScript2ClassDetector.java index e0bbc3765..d7ef5454b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScript2ClassDetector.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScript2ClassDetector.java @@ -712,6 +712,9 @@ public class ActionScript2ClassDetector { } else { throw new AssertException("unknown pushitem function call " + funName); } + } else if (item instanceof DirectValueActionItem) { + //ignore such values + //TODO: maybe somehow display in the class ? } else { throw new AssertException("unknown item - " + item.getClass().getSimpleName()); }