Message193
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.
|
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:16:44 | admin | link | issue222872 messages |
| 2008-02-20 17:16:44 | admin | create | |
|