Message797

Author xks
Recipients
Date 2002-12-06.15:43:00
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
if you try to subclass a java class in jython, and that 
java class has a protected constructor and that java 
class's superclass also has a protected constructor, 
you will get an AttributeError, unless you set 
Dpython.security.respectJavaAccessibility to false.

for example:

abstract public class Super
{
    protected Super()
    {
    }
}

abstract public class Super2 extends Super
{
    protected Super2()
    {
        super();
    }
}

class pySubclass(Super2):
    def __init__(self):
        Super2.__init__(self)

x=pySubclass()
History
Date User Action Args
2008-02-20 17:17:12adminlinkissue649582 messages
2008-02-20 17:17:12admincreate