Alessio Stalla wrote:
[...]
I interpret that to mean that two classes at runtime are considered to
be in the same package if and only if they have the same package name
and they've been loaded by the very same classloader.

So, that might be the problem. Maybe with JUnit you get two classloaders too.

ok, but shouldn't the error then happen whenever I have a CHECKCAST, because the class loading for this does not work? But I already produced a variant containing he CHECKCAST and not giving the IllegalAccessError.

bye Jochen

--
Jochen "blackdrag" Theodorou
The Groovy Project Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/

--
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en.

Reply via email to