mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 06:01:00 +00:00
Fixed synchronization in uninitialized class fields detector
Escaping placeobject.name Better error log messages in some cases
This commit is contained in:
@@ -527,7 +527,11 @@ public class ActionPanel extends JPanel implements SearchListener<ScriptSearchRe
|
||||
if (!decompile) {
|
||||
decompiledText = new HighlightedText(Helper.getDecompilationSkippedComment());
|
||||
} else {
|
||||
decompiledText = SWF.getFromCache(asm);
|
||||
if (src.getSwf().needsCalculatingAS2UninitializeClassTraits(src) && src.getSwf().isDetectingUninitialized()) {
|
||||
decompiledText = null;
|
||||
} else {
|
||||
decompiledText = SWF.getFromCache(asm);
|
||||
}
|
||||
}
|
||||
|
||||
HighlightedText fdecompiledText = decompiledText;
|
||||
@@ -589,7 +593,6 @@ public class ActionPanel extends JPanel implements SearchListener<ScriptSearchRe
|
||||
});
|
||||
|
||||
CancellableWorker that = this;
|
||||
//if (withUninitializedClassFields)
|
||||
ProgressListener progressListener = new ProgressListener() {
|
||||
@Override
|
||||
public void progress(int p) {
|
||||
@@ -602,6 +605,13 @@ public class ActionPanel extends JPanel implements SearchListener<ScriptSearchRe
|
||||
};
|
||||
UninitializedClassFieldsDetector det = asm.getSwf().getUninitializedClassFieldsDetector();
|
||||
det.addProgressListener(progressListener);
|
||||
|
||||
if (src.getSwf().needsCalculatingAS2UninitializeClassTraits(src)) {
|
||||
src.getSwf().waitForUninitializedClassDetector();
|
||||
}
|
||||
if (isCancelled()) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
HighlightedText htext = SWF.getCached(asm, innerActions);
|
||||
ActionList finalActions = innerActions;
|
||||
|
||||
Reference in New Issue
Block a user