|
|
@ -43,8 +43,19 @@ public class LocalVariableTable { |
|
|
|
for (int i=0; i < count; i++) { |
|
|
|
for (int i=0; i < count; i++) { |
|
|
|
int start = stream.readUnsignedShort(); |
|
|
|
int start = stream.readUnsignedShort(); |
|
|
|
int end = start + stream.readUnsignedShort(); |
|
|
|
int end = start + stream.readUnsignedShort(); |
|
|
|
String name = constantPool.getUTF8(stream.readUnsignedShort()); |
|
|
|
int nameIndex = stream.readUnsignedShort(); |
|
|
|
Type type = Type.tType(constantPool.getUTF8(stream.readUnsignedShort())); |
|
|
|
int typeIndex = stream.readUnsignedShort(); |
|
|
|
|
|
|
|
if (nameIndex == 0 || typeIndex == 0 |
|
|
|
|
|
|
|
|| constantPool.getTag(nameIndex) != constantPool.UTF8 |
|
|
|
|
|
|
|
|| constantPool.getTag(typeIndex) != constantPool.UTF8) { |
|
|
|
|
|
|
|
// This is probably an evil lvt as created by HashJava
|
|
|
|
|
|
|
|
// simply ignore it.
|
|
|
|
|
|
|
|
if (Decompiler.showLVT) |
|
|
|
|
|
|
|
Decompiler.err.println("Illegal entry, ignoring LVT"); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
String name = constantPool.getUTF8(nameIndex); |
|
|
|
|
|
|
|
Type type = Type.tType(constantPool.getUTF8(typeIndex)); |
|
|
|
int slot = stream.readUnsignedShort(); |
|
|
|
int slot = stream.readUnsignedShort(); |
|
|
|
locals[slot].addLocal(start, end-start, name, type); |
|
|
|
locals[slot].addLocal(start, end-start, name, type); |
|
|
|
if (Decompiler.showLVT) |
|
|
|
if (Decompiler.showLVT) |
|
|
@ -53,7 +64,7 @@ public class LocalVariableTable { |
|
|
|
+" slot "+slot); |
|
|
|
+" slot "+slot); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (IOException ex) { |
|
|
|
} catch (IOException ex) { |
|
|
|
ex.printStackTrace(); |
|
|
|
ex.printStackTrace(Decompiler.err); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|