Message887

Author jeromedavid
Recipients
Date 2004-01-19.20:23:31
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I have a factory returning an instance of a class
GocadTSurfImpl that implements (indirectly) a GocadGObj
interface and therefore implements a getGObj() method.

In Java, I can call this getGObj() method on this
instance of GocadTSurfImpl from another package, but if
I write the equivalent code in Jython, I get an
IllegalAccessException.

Attached is the sample test case. Main.java runs
perfectly, but Main.py (that does the same thing in
Jython) throws am IllegalAccessException.

There's a workaround. You can specify explicitely
that GocadGObjImpl (the base class of GocadTSurfImpl)
implements GocadGObj.
However, this means that you have to modified the java
code when you shouldn't have to.
History
Date User Action Args
2008-02-20 17:17:17adminlinkissue880074 messages
2008-02-20 17:17:17admincreate