# HG changeset patch # User Paul Boddie # Date 1108257043 -3600 # Node ID 0e3cc4370264e6969a4ed3deaa93fbb32ef74de5 # Parent fed5a5ceb0e66f95ab6c119bf75e1f7597807766 Fixed offsets in tableswitch. diff -r fed5a5ceb0e6 -r 0e3cc4370264 javaclass/bytecode.py --- a/javaclass/bytecode.py Sun Feb 13 01:35:44 2005 +0100 +++ b/javaclass/bytecode.py Sun Feb 13 02:10:43 2005 +0100 @@ -1965,9 +1965,9 @@ # Get the pertinent arguments. code = code[to_boundary:] - default = classfile.u4(code[0:4]) - low = classfile.u4(code[4:8]) - high = classfile.u4(code[8:12]) + default = classfile.s4(code[0:4]) + low = classfile.s4(code[4:8]) + high = classfile.s4(code[8:12]) # Process the jump entries. # NOTE: This is not the most optimal implementation. @@ -2250,7 +2250,6 @@ for method in self.class_file.methods: real_method_name = str(method.get_name()) method_name = str(method.get_python_name()) - translator, writer = self.translate_method(method) # Add external names to the master list.