| Newsgroups |
gmane.comp.web.freemarker.user |
| Message-ID |
<[email protected]> |
Thanks Attila,
You have the point,
However from design point of view, I wouldn't agree. Swing is a part of JRE doesn't mean Its a good idea for a JSP custom tag for Tree should implement interfaces from it. No one would prevent you but a good developer wouldn't do that. Swing is focused to do some thing else.
I had a look at the code, I think that its just TemplateElement which has dependency on javax.swing. TemplateElement required to expose contract similar to TreeNode and developer thought its easy to implement TreeNode.
It would be great If we can avoid this dependency.
I think that creating a new interface like TreeNode and let TemplateElement implement would solve the problem.
I would give it a try. Hope it doesn't have dependency on more classes.
I would really like to run freemarker on gae.
Thanks
SN
Sudhir NimavatSenior software engineer.
Quick start global PVT LTD.
Baroda - 390007
Gujarat, India
Personally I'm always ready to learn, although I do not always like being taught
________________________________
From: Attila Szegedi <[email protected]>
To: FreeMarker-user <[email protected]>
Sent: Fri, 25 December, 2009 10:33:50 PM
Subject: Re: [FreeMarker-user] Dependeny on javax.swing
Alright, FWIW here’s my opinion… I’m one of primary developers of FreeMarker, even if it wasn’t me who created the dependency.
Jonathan (who introduced it) thought of it as the easiest way to expose template AST to IDE tooling. Also, note that there’s no standard tree representation API in java.util.* and javax.swing.tree.* is the closest to it; lots of classes and interfaces in it are applicable to any tree data representation, not just ones suitable for a GUI. As Sun mandates the presence of “javax.swing” package in every SE runtime engine that wishes to use the name “Java” it didn’t seem to be a problem.
Anyway, GAE is not a “Java Runtime Environment, Standard Edition” if it doesn’t have javax.swing.*. I just sent an e-mail to some of my contacts at Sun to clarify the matters, and maybe contact the Google to either stop using the “Java” trademark, or alternatively get their JRE right.
Google’s decision to not include this package/classes into its App Engine makes that runtime environment into not being a JRE. FreeMarker is developed for running on a JRE.
GAE has other problems as well. I.e. it interjects its own reflection replacement classes defined in the “com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect” package, that unfortunately run with less privileges than the real “java.lang.reflect” package, so when we use them to, say, reflectively invoke package-private constructors from within the same package – something that works nicely in a real JRE – GAE will throw an exception, since classes in package “com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect” have no access to our package private constructor – the classes in “java.lang.reflect” of course don’t have this limitation as they are subject to no access control.
I consider all of these to be JRE compliance bugs in the GAE implementation of the Java-like runtime.
As I said, I fired off an e-mail to Sun so that they can investigate whether Google can use the name "Java" for what they provide in GAE. FreeMarker is made to run in a compliant Java Runtime Environment.
Attila.
On 2009.12.25., at 17:02, [email protected] wrote:
> See this
>
> http://solveme.wordpress.com/2009/12/25/freemarker-sucks-it-has-dependency-on-javax-swing/
>
> Devs, will this be fixed ?
>
> Thanks
> SN
>
> Personally I'm always ready to learn, although I do not always like being taught
>
>
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
Attila.
--
home: http://www.szegedi.org
twitter: http://twitter.com/szegedi
weblog: http://constc.blogspot.com
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user