I came across this class, which only stores static methods:
public class foo { public static void bar() { ... } }
Adding a dummy constructor helped in my case. I assume that due to the nature of pythons, classes were actually already objects (there is a long post on metaclasses giving some information about understanding a class in python, reading it worth reading eventhough is another topic), and jython is trying to make the class an object before running the function although it is static. I am sure this may be an error message. (I am testing on jython2.5).
update . I donβt think my theroy for theause is likely, since I think Java has some pure static classes as well. However, the solution solved the problem twice.
with dummy constructor:
public class foo { public foo() {}
}
source share