From: SourceForge.net <no...@so...> - 2004-01-19 20:23:33
|
Bugs item #880074, was opened at 2004-01-19 14:23 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=880074&group_id=12867 Category: Core Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jerome David (jeromedavid) Assigned to: Nobody/Anonymous (nobody) Summary: IllegalAccessException Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=880074&group_id=12867 |