Re: freemarker plus javarebel problems...caching?

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Thursday, May 15, 2008, 12:48:11 PM, ekabanov wrote:

> Well, it's not the only product that allows HotSwap -- IBM J9 has some
> support and Weblogic 10.3 features something called FastSwap. By making
> wrong assumptions you are just hurting your own users in the long run.

I'm pretty much sure that BeansWrapper didn't made a wrong assumption
here. It's JavaRebel that breaks a contract of the Java platform. Most
Java code will assume that the classes are immutable; this is just a
basic thing in the Java philosophy. It's not Ruby. HotSwap doesn't
violate this too much either, because you just change the behavior of
methods, which is of course possible even without HotSwap (and thus,
AFAIK, HotSwap doesn't confuse BeansWrapper). Besides, even HotSwap
can confuse a program, unless you are careful in what/when/with-what
do you HotSwap. Now if I understand well, JavaRebel can change the
"public interface" of classes... well, then it's granted that it will
break many 3rd party products. I'm not saying that it's not useful,
but that you have to know very well which classes can be re-loaded
without causing mess. Like, I can imagine that an MVC Action class and
like can be, but in no way it's something that you can do in general,
and then expecting 3rd party stuff to survive it. So, sorry, if there
is a wrong assumption there, then it's not on the side of FreeMarker
in this case (or on the side of any other projects that will be
confused). Saying that would be quite a business man talk.

> And the fix is very easy, just reset the cache when you don't find
> some property or method and retry once.

If it's easy to fix it, then sure, why not... but I guess it's not
easy, since there are some priority rules to resolve ambiguities, like
to resolve method overloading ambiguities, Map VS Bean property
ambiguities, etc. Anyway, Attila knows this better than me, he will
tell...

> Cheers,
> Jevgeni Kabanov
>
>
> Attila Szegedi-3 wrote:
>> 
>> 
>> On 2008.05.15., at 12:20, ekabanov wrote:
>> 
>>>
>>> Sorry, no comments :)
>> 
>> No problem. I'm happy to take my kids out to park this afternoon to  
>> throw frisbee instead of figuring out how to work around this in order  
>> to enrich someone's experience with a proprietary product.
>> 
>> Cheers,
>>    Attila.
>> 
>> 
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft 
>> Defy all challenges. Microsoft(R) Visual Studio 2008. 
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> FreeMarker-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>> 
>> 
>

-- 
Best regards,
 Daniel Dekany


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.