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

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

commit ac0e3d6dc95ec61ade20bfc34839aa369812dcbf
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Oct 6 13:39:26 2021 +0100

    Revert "Remove test for STM JSP"
    
    This reverts commit d96e0fc444f3ba0a484632318184c0fcc4353664.
---
 test/org/apache/jasper/compiler/TestGenerator.java |  5 +++++
 test/webapp/jsp/generator/single-threaded.jsp      | 17 +++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/test/org/apache/jasper/compiler/TestGenerator.java 
b/test/org/apache/jasper/compiler/TestGenerator.java
index 65fb6d6..baeb808 100644
--- a/test/org/apache/jasper/compiler/TestGenerator.java
+++ b/test/org/apache/jasper/compiler/TestGenerator.java
@@ -720,6 +720,11 @@ public class TestGenerator extends TomcatBaseTest {
     }
 
     @Test
+    public void testSingleThreaded() throws Exception {
+        doTestJsp("single-threaded.jsp");
+    }
+
+    @Test
     public void testXpoweredBy() throws Exception {
         doTestJsp("x-powered-by.jsp");
     }
diff --git a/test/webapp/jsp/generator/single-threaded.jsp 
b/test/webapp/jsp/generator/single-threaded.jsp
new file mode 100644
index 0000000..371ec50
--- /dev/null
+++ b/test/webapp/jsp/generator/single-threaded.jsp
@@ -0,0 +1,17 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ page isThreadSafe="false" %>
\ No newline at end of file

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to