From cf5c21b63c7856328e77a21a62d0014868455493 Mon Sep 17 00:00:00 2001 From: afffsdd Date: Tue, 17 May 2016 17:29:25 -0400 Subject: [PATCH] Fix loading for individual .class files --- .../java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java index 9872e781..879af25b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java @@ -689,7 +689,7 @@ public class BytecodeViewer { final ClassNode cn = JarUtils.getNode(bytes); FileContainer container = new FileContainer(f); - container.files.put(fn, bytes); + container.files.put(cn.name + ".class", bytes); container.add(cn); BytecodeViewer.files.add(container); } else {