Tuesday, October 30, 2012

Re: GWT 2.5 Java 5 runtime(!) compatibility

On 30/10/2012 16:08, Jens wrote:
> Still, other then saying that it is so because it has been said so - I still don't see
> an argument why the gwt-servlet.jar would technically require Java 1.6.
> True, but some day you have to make the cut. Technically they probably have used a Java
> 1.6 API somewhere thats not available in Java 1.5. So if you compile using target 1.5 you
> still can't use the library because a Java 1.5 JVM does not provide the needed API. In
> that case you would get a NoSuchMethodError at runtime.
> A good example for this is String.isEmpty() which has been introduced in Java 1.6.

Another example can be the usage of @Override on interface method implementations, etc.
If they don't use Java 6-specific features, I suppose you can build our own jar with Java
5, that's the advantage of open source...

Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment