New submission from Philip Crotwell:
If there is a method of the same name as both static and on the object,
the static one can't be called. For example Class.getName() works on URL
because there is no getName() object method, but toString() does not
because there is both a object toString() in URL and a toString() on the
crotwell$ java -jar output/lib/jython-2.2.1.jar
Jython 2.2.1 on java1.5.0_13
Type "copyright", "credits" or "license" for more information.
>>> from java.net import URL
Traceback (innermost last):
File "<console>", line 1, in ?
TypeError: toString(): expected 1 args; got 0
Interestingly, the str() function seems to find the toString on the class:
title: static java methods on class hidden by object methods
Jython tracker <report@...>