You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/07/28 20:28:04 UTC

[tomcat] branch 8.5.x updated: Update references to Java 6

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
     new 67f231d  Update references to Java 6
67f231d is described below

commit 67f231d9b7b5ab89a16f7d9e2a2eef12acb45a20
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Jul 28 21:27:34 2021 +0100

    Update references to Java 6
---
 java/org/apache/catalina/filters/RemoteIpFilter.java |  1 -
 webapps/docs/jasper-howto.xml                        | 16 ++++++++++++----
 2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/java/org/apache/catalina/filters/RemoteIpFilter.java b/java/org/apache/catalina/filters/RemoteIpFilter.java
index fffba9d..13a4011 100644
--- a/java/org/apache/catalina/filters/RemoteIpFilter.java
+++ b/java/org/apache/catalina/filters/RemoteIpFilter.java
@@ -796,7 +796,6 @@ public class RemoteIpFilter implements Filter {
         if (isInternal || (trustedProxies != null &&
                 trustedProxies.matcher(request.getRemoteAddr()).matches())) {
             String remoteIp = null;
-            // In java 6, proxiesHeaderValue should be declared as a java.util.Deque
             LinkedList<String> proxiesHeaderValue = new LinkedList<>();
             StringBuilder concatRemoteIpHeaderValue = new StringBuilder();
 
diff --git a/webapps/docs/jasper-howto.xml b/webapps/docs/jasper-howto.xml
index 850d0d3..f150636 100644
--- a/webapps/docs/jasper-howto.xml
+++ b/webapps/docs/jasper-howto.xml
@@ -352,10 +352,18 @@ are automatically compiled as part of the build process.
 At the jasper task you can use the option <code>addWebXmlMappings</code> for
 automatic merge the <code>${webapp.path}/WEB-INF/generated_web.xml</code>
 with the current web application deployment descriptor at
-<code>${webapp.path}/WEB-INF/web.xml</code>. When you want to use Java 6
-features inside your JSP's, add the following javac compiler task attributes:
-<code>source=&quot;1.6&quot; target=&quot;1.6&quot;</code>. For live
-applications you can also disable debug info with <code>debug=&quot;off&quot;</code>.
+<code>${webapp.path}/WEB-INF/web.xml</code>.
+</p>
+
+<p>
+When you want to use a specific version of Java for your JSP's, add the
+javac compiler task attributes <code>source</code> and <code>target</code> with
+appropriate values. For example, <code>16</code> to compile JSPs for Java 16.
+</p>
+
+<p>
+For production you may wish to disable debug info with
+<code>debug=&quot;off&quot;</code>.
 </p>
 
 <p>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org