|
From: Chris A. <at...@nm...> - 2001-01-22 21:53:28
|
I am running jython 2.0 release on hpux 11 with jdk1.2.2.07.
I run my jython interpretter
with -Dpython.security.respectJavaAccessibility= 0 and =false.
In both cases, I am unable to access protected methods of a class.
I just switched out my jar file from using jpython1.1 to jython2.0, and it
works under under jpython1.1
My python code looks like the following:
print foo.toPrintString(obja, string1, string2)
I get the following error:
TypeError: toPrintString(): expected 0-2 args; got 3
My java code looks like the following:
public class foo extends fooBase
{
protected String toPrintString(Object obj,
String initialIndent, String name)
{
}
}
abstract public class fooBase {
public String toPrintString()
{
}
public String toPrintString(String initialIndent)
{
}
public String toPrintString(String initialIndent, String name)
{
}
abstract protected String toPrintString(java.lang.Object fooObj,
String initialIndent, String
name);
}
|