# HG changeset patch # User Paul Boddie # Date 1108254806 -3600 # Node ID 36fc18633fec34cd16728e3c9d7c5bb09ebb34ea # Parent f83c8a6dd9354b90ae4018b8a8a0087cbf203c0a Fixed superclass retrieval so that undefined superclasses denote the standard inheritance from java.lang.Object. diff -r f83c8a6dd935 -r 36fc18633fec javaclass/classfile.py --- a/javaclass/classfile.py Thu Jan 27 23:31:52 2005 +0100 +++ b/javaclass/classfile.py Sun Feb 13 01:33:26 2005 +0100 @@ -613,7 +613,12 @@ index = u2(s[0:2]) return self.constants[index - 1], s[2:] - _get_super_class = _get_this_class + def _get_super_class(self, s): + index = u2(s[0:2]) + if index != 0: + return self.constants[index - 1], s[2:] + else: + return None, s[2:] def _get_interfaces(self, s): interfaces = []