Message143
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. |
|
Date |
User |
Action |
Args |
2008-02-20 17:16:42 | admin | link | issue222847 messages |
2008-02-20 17:16:42 | admin | create | |
|