mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 21:10:53 +00:00
Fixed #2202 AS2 detection of uninitialized class fields colliding with setters/getters
This commit is contained in:
+5
@@ -213,6 +213,11 @@ public class UninitializedClassFieldsDetector {
|
||||
GraphTargetItem value = en.getValue();
|
||||
boolean isStatic = cai.traitsStatic.get(i);
|
||||
if (value instanceof FunctionActionItem) {
|
||||
if (name.startsWith("__get__") || name.startsWith("__set__")) {
|
||||
String vname = name.substring(7);
|
||||
Variable v = new Variable(isStatic, vname, vname, className);
|
||||
classTraits.get(className).put(vname, v);
|
||||
}
|
||||
Method m = new Method(isStatic, name, "Unknown" /*FIXME?*/, className);
|
||||
classTraits.get(className).put(name, m);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user