From e4e511bf3d60cb64b361078914b8c9df5ec8561f Mon Sep 17 00:00:00 2001 From: Cody Date: Thu, 3 Nov 2022 02:59:58 -0700 Subject: [PATCH] Fix FernFlower "Rename ambiguous classes and class elements". --- .../decompilers/impl/FernFlowerDecompiler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java index 124f51f2..8faf4d0d 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java @@ -118,7 +118,12 @@ public class FernFlowerDecompiler extends InternalDecompiler tempClass.delete(); - final File outputJava = new File(start + ".java"); + String javaDir = start; + if (BytecodeViewer.viewer.ren.isSelected()) { + javaDir = tempDirectory + "class_0"; + } + + final File outputJava = new File(javaDir + ".java"); if (outputJava.exists()) { String s; try {