You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The JarLauncher in the spoon decompiler always uses the same tmp directory, no matter if the jar changes. This result in having classes inside the model that were not actually inside the jar, just because the decompiled source code is still there from the previous Jar.
The line that gives the problem is line 92 in JarLauncher.java: decompiledSrcPath = System.getProperty("java.io.tmpdir") + System.getProperty("file.separator") + "spoon-tmp";
I suggest to create a new random directory every time and delete it at the end, or just delete this one every time.
Thanks
The text was updated successfully, but these errors were encountered:
Hi! Thanks for the reply. Looking at the javadoc it says: If this pathname denotes a directory, then the directory must be empty in order to be deleted.
I guess this is the problem, being the directory full with decompiled sources.
Thanks
Luca
The JarLauncher in the spoon decompiler always uses the same tmp directory, no matter if the jar changes. This result in having classes inside the model that were not actually inside the jar, just because the decompiled source code is still there from the previous Jar.
The line that gives the problem is line 92 in JarLauncher.java:
decompiledSrcPath = System.getProperty("java.io.tmpdir") + System.getProperty("file.separator") + "spoon-tmp";
I suggest to create a new random directory every time and delete it at the end, or just delete this one every time.
Thanks
The text was updated successfully, but these errors were encountered: