I'm not everyday Tapestry user but I try to 'evangelize' in my neighborhood.
In April I given presentation about Tapestry on tricity JUG and in next
couple of weeks I'm planning to do another one. During first presentation I
told that T5 won't change in a way that will affect existing code and with
new version there is feature that makes me a liar ;) After long introduction
I have proposal. Maybe it would be best for T5 if there would be option in
MappedConfiguration that would turn on/off live reloading on all methods,
something like:

configuration.add(SymbolConstants.ENABLE_LIVE_RELOADING, "true/false");

with possibility to add the .preventReloading()/.enableReloading() on
services that should behave in other way. Thanks to that You are backward
compatible (what is IMO the most important thing for tapestry currently) and
in easy way one may use new features on his own responsibility.
Of course I don't know if it is possible to implement that kind of feature
but it would show that T5 is really going to develop in a way that won't
harm any already existing applications. (or maybe that bug is simple to
resolve and all that I wrote is not relevant :) )



Howard Lewis Ship wrote:
> 
> You can see these kinds of exceptions for a service implementation
> that accesses protected or package private members of another class.
> Because the service implementation class is loaded in a new
> ClassLoader (to support live class reloading), it is considered to be
> in a different Java package from the other classes (even though this
> new package has the exact same name). When the specially loaded code
> accesses those private members, this is recognized by the JVM which
> throws the exception you are seeing.
> 
> You should either make those other members (including constructors)
> public OR mark the service in question as not live-reloadable.  This
> can be accomplished as:
> 
> public static void bind(ServiceBinder binder)
> {
>   binder.bind(MyInterface.class,
> MyImplementation.class).preventReloading();
> }
> 

-- 
View this message in context: 
http://tapestry-users.832.n2.nabble.com/Tapestry-5-2-0-Alpha-Release-Now-Available-tp5389967p5426894.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to