12/13/2014 - Fixed an issue with the Bytecode Decompiler. - Thanks bibl
This commit is contained in:
Kalen Kinloch 2014-12-13 17:21:25 -08:00
parent 0a81d6964d
commit 949a78b241

AI 샘플 코드 생성 중입니다

Loading...
5 changed files with 23 additions and 16 deletions

View File

@ -14,10 +14,9 @@ FernFlower by Stiver
Procyon by Mstrobel
CFR by Lee Benfield
Video of Beta 1.5.2: https://the.bytecode.club/pages.php?page=bytecode-viewer
Download the latest version here: https://github.com/Konloch/bytecode-viewer/releases if you're looking for an older copy, check out https://the.bytecode.club/bcv-archive/
Video: http://the.bytecode.club/bytecodeviewer-video/
Source Code: https://github.com/konloch/bytecode-viewer
Bin/Archive: https://github.com/konloch/bytecode-viewer/releases
Java Docs: https://the.bytecode.club/docs/bytecode-viewer/
Features:
@ -176,3 +175,5 @@ Changelog:
12/13/2014 - The Bytecode Decompiler now shows the method's description in a comment.
12/13/2014 - Fixed an issue with the text search function.
12/13/2014 - Search results are now clickable.
--- 2.2.1 ---:
12/13/2014 - Fixed an issue with the Bytecode Decompiler. - Thanks bibl

View File

@ -1 +1 @@
2.2.0
2.2.1

View File

@ -208,6 +208,8 @@ import the.bytecode.club.bytecodeviewer.plugins.PluginManager;
* 12/13/2014 - The Bytecode Decompiler now shows the method's description in a comment.
* 12/13/2014 - Fixed an issue with the text search function.
* 12/13/2014 - Search results are now clickable.
* -----2.2.1-----:
* 12/13/2014 - Fixed an issue with the Bytecode Decompiler. - Thanks bibl
*
* @author Konloch
*
@ -229,7 +231,7 @@ public class BytecodeViewer {
private static ArrayList<String> recentPlugins = DiskReader.loadArrayList(pluginsName, false);
public static boolean runningObfuscation = false;
public static String version = "2.2.0";
public static String version = "2.2.1";
public static void main(String[] args) {
iconList = new ArrayList<BufferedImage>();

View File

@ -163,20 +163,21 @@ public class InstructionPrinter {
}
protected String printFieldInsnNode(FieldInsnNode fin, ListIterator<?> it) {
return nameOpcode(fin.getOpcode()) + " " + fin.owner + "." + fin.name + ":" + Type.getType(fin.desc).getClassName();
String desc = Type.getType(fin.desc).getClassName();
if(desc == null || desc.equals("null"))
desc = fin.desc;
return nameOpcode(fin.getOpcode()) + " " + fin.owner + "." + fin.name + ":" + desc;
}
protected String printMethodInsnNode(MethodInsnNode min, ListIterator<?> it) {
StringBuilder sb = new StringBuilder();
sb.append(nameOpcode(min.getOpcode()) + " " + min.owner + " " + min.name + "(");
if(Type.getType(min.desc).getClassName() == null ||
Type.getType(min.desc).getClassName().equalsIgnoreCase("null"))
{
//sb.append(min.desc);
} else {
sb.append(Type.getType(min.desc).getClassName());
}
String desc = Type.getType(min.desc).getClassName();
if(desc == null || desc.equals("null"))
desc = min.desc;
sb.append(desc);
sb.append(");");
return sb.toString();
@ -216,7 +217,10 @@ public class InstructionPrinter {
protected String printTypeInsnNode(TypeInsnNode tin) {
try {
return nameOpcode(tin.getOpcode()) + " " + Type.getType(tin.desc).getClassName();
String desc = Type.getType(tin.desc).getClassName();
if(desc == null || desc.equals("null"))
desc = tin.desc;
return nameOpcode(tin.getOpcode()) + " " + desc;
} catch(Exception e) {
new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);
}