tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Inconsistent output of Java 5 enums
Date Thu, 14 Oct 2010 19:21:07 GMT
On 14/10/2010 20:03, Oliver Siegmar wrote:
> Hi Pid,
> 
> Am Thursday 14 October 2010 schrieb Pid:
>> Which JSTL implementation are you using and which Java version was it
>> compiled for/on?
> 
> http://repo2.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar
> 
> Using Sun/Oracle Java 6u21

OK.

The related sources jar was built in 2006, and the pom for that
indicates that it's dependent on JSP 2.0, rather than 2.1.

At a guess, JSTL doesn't know what an enum is, so it's just doing what
it would do for any other unknown Object subclass, and is calling the
.toString() method.


p


Mime
View raw message