You can compile java even 1.2 source code with JDK 1.8, so what is the problem with compiling Java 7 source with GWT for Java 8 emulation? Interfaces also should not be broken because of default methods in interfaces (that can just be ignored in sourceLevel < 8). Can you give example that describes the problem, please?
It is impossible to emulate certain Java 8 APIs without using Java 8 syntax (e.g. default methods on Collection interface). But if you launch GWT with -sourceLevel 1.7 then all Java 8 syntax is invalid and the emulated code that require Java 8 syntax will not compile.
That means we either
- do not support Java 8 APIs in GWT 2.8 because we still want to support -sourceLevel 1.7, or
- GWT 2.8 will be Java 8 only and if you want to use it with -sourceLevel 1.7 you have to replace all emulated JRE code with the one of GWT 2.7 yourself
-- J.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment