Message146

Author mfuzzey
Recipients
Date 2003-11-25.15:53:30
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=698912

I have a variant on this problem.
public interface Itf {
    public myMethod();
}

abstract class BaseClass {  <-- Package protected
    public myMethod() { ... }
}

class Impl extends BaseClass implements Itf { <-- Package
protected
}

If I now obtain an instance of Impl and try to call myMethod
on it from Jython I get an illegal access error even though
this class implements an interface defining the method.

In Java I can do it by casting to Itf.

Not that if I make BaseClass implement Itf all works fine...

Also I can't find bug #132462 mentionned below...

Martin
History
Date User Action Args
2008-02-20 17:16:43adminlinkissue222847 messages
2008-02-20 17:16:43admincreate