Issue880074

classification
Title: IllegalAccessException
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, jeromedavid
Priority: low Keywords:

Created on 2004-01-19.20:23:31 by jeromedavid, last changed 2006-08-29.03:47:21 by cgroves.

Files
File name Uploaded Description Edit Remove
acme.zip jeromedavid, 2004-01-19.20:23:32 Test case
Messages
msg887 (view) Author: Jerome David (jeromedavid) Date: 2004-01-19.20:23:31
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.
msg888 (view) Author: Charlie Groves (cgroves) Date: 2006-08-29.03:47:21
Logged In: YES 
user_id=1174327

This has the same base cause as 628315.  It's fixed in trunk.
History
Date User Action Args
2004-01-19 20:23:31jeromedavidcreate