Using JDK15's JEP 378 text blocks in Tomcat JSP pages

240 views Asked by At

Sample code:

String s = """
test
""";
%>

Getting.

org.apache.jasper.compiler.JDTCompiler.generateClass Unsupported target VM [15] requested, using [13]

/usr/local/tomcat/bin/version.sh reports:

Server version: Apache Tomcat/9.0.38
JVM Version:    15+36-1562

At http://tomcat.apache.org/tomcat-10.0-doc/changelog.html I see:

Add support for specifying Java 14 (with the value 14) and Java 15 (with the value 15) as the compiler source and/or compiler target for JSP compilation. If used with an ECJ version that does not support these values, a warning will be logged and the latest supported version will used. (markt)

Anyone had any success getting Text Blocks working on non-alpha Tomcat?

0

There are 0 answers