Message193

Author bckfnn
Recipients
Date 2000-11-18.19:45:06
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Some instances of class "java.lang.Class" have strange behaviour. Method calls
to them act as static method calls that require the extra "self" argument. 
To reproduce the problem:

>>> from java.lang import *
>>> cls = Class.forName("java.lang.Class")
>>> cls.getName()
Traceback (innermost last):
  File "<console>", line 1, in ?
TypeError: getName(): expected 1 args; got 0
>>> cls.getName(cls)
'java.lang.Class'
>>>

I encountered this bug in both Blackdown's and Sun's latest version of jdk1.2, 
and  Sun's jdk1.3beta, all on Linux. The JIT compiler has been turned off.

History
Date User Action Args
2008-02-20 17:16:44adminlinkissue222872 messages
2008-02-20 17:16:44admincreate