https://bz.apache.org/bugzilla/show_bug.cgi?id=69696
Bug ID: 69696 Summary: Unexpected jsp page result if inner class changed to compilation error Product: Tomcat 11 Version: 11.0.6 Hardware: PC Status: NEW Severity: normal Priority: P2 Component: Jasper Assignee: dev@tomcat.apache.org Reporter: ch...@msn.com Target Milestone: ------- If a valid jsp file with inner class visited once and then the jsp inner class source changed to invalid, its inner class (.class) retained in working directory. Later, the request result is unpredictable. 1. source code of welcome.jsp ```java <% class Person { int getAge() { return 30; } } %> <html> <body> Welcome! Age:<%=new Person().getAge()%> </body> </html> ``` 2. curl with expected result. 3. change the source code to: ```java <% class Person { int getAge() { return 30a; // obviously failed to compile. } } %> <html> <body> Welcome! Age:<%=new Person().getAge()%> </body> </html> ``` 4. curl welcome.jsp, got 500 as expected! 5. curl welcome.jsp again quickly, got 200 response same with step 2. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org