javaclass

Changeset

167:0e3cc4370264
2005-02-13 Paul Boddie raw files shortlog changelog graph Fixed offsets in tableswitch.
javaclass/bytecode.py (file)
     1.1 --- a/javaclass/bytecode.py	Sun Feb 13 01:35:44 2005 +0100
     1.2 +++ b/javaclass/bytecode.py	Sun Feb 13 02:10:43 2005 +0100
     1.3 @@ -1965,9 +1965,9 @@
     1.4          # Get the pertinent arguments.
     1.5  
     1.6          code = code[to_boundary:]
     1.7 -        default = classfile.u4(code[0:4])
     1.8 -        low = classfile.u4(code[4:8])
     1.9 -        high = classfile.u4(code[8:12])
    1.10 +        default = classfile.s4(code[0:4])
    1.11 +        low = classfile.s4(code[4:8])
    1.12 +        high = classfile.s4(code[8:12])
    1.13  
    1.14          # Process the jump entries.
    1.15          # NOTE: This is not the most optimal implementation.
    1.16 @@ -2250,7 +2250,6 @@
    1.17          for method in self.class_file.methods:
    1.18              real_method_name = str(method.get_name())
    1.19              method_name = str(method.get_python_name())
    1.20 -
    1.21              translator, writer = self.translate_method(method)
    1.22  
    1.23              # Add external names to the master list.