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 44f23647c19dd7f148849cfd1725b4672b557493
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Jan 3 09:29:11 2024 +0000

    Test will always pass for Tomcat 11
---
 test/org/apache/jasper/compiler/TestGenerator.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/org/apache/jasper/compiler/TestGenerator.java 
b/test/org/apache/jasper/compiler/TestGenerator.java
index b854a6010b..477ef0df51 100644
--- a/test/org/apache/jasper/compiler/TestGenerator.java
+++ b/test/org/apache/jasper/compiler/TestGenerator.java
@@ -40,7 +40,6 @@ import jakarta.servlet.jsp.tagext.TryCatchFinally;
 import jakarta.servlet.jsp.tagext.VariableInfo;
 
 import org.junit.Assert;
-import org.junit.Ignore;
 import org.junit.Test;
 
 import org.apache.catalina.Context;
@@ -786,12 +785,12 @@ public class TestGenerator extends TomcatBaseTest {
         doTestJsp("usebean-04.jsp", 
HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
     }
 
-    @Ignore // Requires specific Java settings
     @Test
     public void testUseBean05() throws Exception {
         // Whether this test passes or fails depends on the Java version used
         // and the JRE settings.
         // For the test to pass use --illegal-access=deny
+        // This is the default setting for Java 16 onwards
         doTestJsp("usebean-05.jsp", 
HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
     }
 


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

Reply via email to