Message143

Author szegedia
Recipients
Date 2002-10-10.11:37:14
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=52489

This exception is completely in place. Think about it: you 
can't call this method statically from Java as well - 
  ((Bar)object).hi()
is illegal as the compiler won't let you even cast an object 
reference to Bar. When you call a method by name, and the 
method is in a non-public class, you have to lookup the same 
method in the public superclasses and superinterfaces of the 
class. This is how you "upcast" to public class/interface in 
the reflection world. If there's no public superclass/interface 
with this method, you just *can't call* the method. This was 
encountered in other scriptlike environments as well -- I did 
this "dynamic upcast" logic for both FreeMarker and Velocity 
template engines in the past.
History
Date User Action Args
2008-02-20 17:16:42adminlinkissue222847 messages
2008-02-20 17:16:42admincreate