-
1. Re: Wildfly 8.1.0, JSPs and Java 8 syntax
jaysensharma Apr 14, 2015 2:47 AM (in response to jessholle)There seems to be some issue related to "source-vm="1.8" target-vm="1.8"" mentioned as part of [WFLY-4362] Web container (undertow) isn't able to compile JSPs containing JDK 8 specific code (lambda expressions) - JB…
I can see no such WARN in wildfly-9.0.0.Alpha2-SNAPSHOT. Try with latest WildFly : Downloads · WildFly
-
2. Re: Wildfly 8.1.0, JSPs and Java 8 syntax
ctomc Apr 14, 2015 5:43 AM (in response to jaysensharma)Yes this problem was related to bug in ejc compiler and how jasper(jsp compiler) understands lambda.
You guys can grab WildFly 9 beta2 which should work quite well.
-
3. Re: Wildfly 8.1.0, JSPs and Java 8 syntax
jessholle Apr 14, 2015 6:48 PM (in response to ctomc)Wildfly 9 beta is not an option.
I need this to work with Wildfly 8.1.0 or 8.2.0. Moverover it doesn't seem like a bug in EJC or lambda understanding -- rather it would seem that no one tried to even make jsp-config recognize 1.8 as a valid source/target for JSP compilation.
Note that this has been working in Tomcat 8 for some time now -- via EJC and Jasper.
-
4. Re: Wildfly 8.1.0, JSPs and Java 8 syntax
ctomc Apr 15, 2015 5:24 AM (in response to jessholle)Yes jasper compiler needed to learn java 8 support.
we backported commits need to make this work to jastow.
this ware the changes needed Comparing f2a0f1346cac771633248515883c0206808f7243...76943fa16a7c419c450993ad7b2ab771db731bfc · undertow-io/jastow · Git…
including the ECJ update to 4.4.x that is the version that added java8 syntax support
You can make it work on wildfly 8.2 by manually updating jastow to Maven Repository: io.undertow.jastow » jastow » 1.1.1.Final
and ecj to Maven Repository: org.eclipse.jdt.core.compiler » ecj » 4.4.2
-
5. Re: Wildfly 8.1.0, JSPs and Java 8 syntax
jessholle Apr 15, 2015 8:38 AM (in response to ctomc)Thanks, dropping those updates in place and updating module.xml did the trick.