Summary: | EL parser problem for EmptyList | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | bozho <glamd> |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 7.0.19 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: | A copy of two files from gump output, 25 Jul 2011 08:58:47 (UTC) |
Description
bozho
2011-07-23 08:17:58 UTC
I have added unit tests for this in Tomcat 7 that access the list in EL as a property of a bean, in EL directly and from within a JSP and all pass. At this points it looks an application issue. If you still see this problem with the latest Tomcat 7 release then to re-open this issue you'll need to provide the simplest possible JSP that demonstrates this issue. Gump caught this error with the tests that Mark wrote for this issue. Testsuite: org.apache.el.TestValueExpressionImpl Tests run: 7, Failures: 0, Errors: 2, Time elapsed: 0.131 sec Failed: - testBug51544Bean - testBug51544Direct Testsuite: org.apache.el.TestELInJsp Tests run: 14, Failures: 0, Errors: 1, Time elapsed: 23.259 sec Failed: - testBug51544 Created attachment 27311 [details] A copy of two files from gump output, 25 Jul 2011 08:58:47 (UTC) 1. I am attaching a copy from the logs produced by gump run The log files are http://vmgump.apache.org/gump/public/tomcat-trunk/tomcat-trunk-test/gump_file/TEST-org.apache.el.TestValueExpressionImpl.BIO.txt.html http://vmgump.apache.org/gump/public/tomcat-trunk/tomcat-trunk-test/gump_file/TEST-org.apache.el.TestELInJsp.BIO.txt.html 2. I am not able to reproduce this in my environment (Sun JDK 6u26 32-bit, WinXP): tested with BIO connector, like gump did. All tests run fine. bozho, what version of java runtime are you using? Gump is running open JDK: java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.8) (6b20-1.9.8-0ubuntu1~10.04.1) OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode) Hi, My version is: java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.1) (amazon-44.1.9.1.18.amzn1-i386) OpenJDK Client VM (build 19.0-b06, mixed mode) it's still in testing mode, hence the -client VM. I will change to -server, but I guess it will still be there. I took a look at the Oracle and OpenJDK implementations of emptyList(). If I modify the test to use size() rather than isEmpty() it fails on the Oracle JDK as well. Fixed in 7.0.x and will be included in 7.0.20 onwards. |