tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Inconsistent output of Java 5 enums
Date Thu, 14 Oct 2010 19:24:00 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pid,

On 10/14/2010 3:21 PM, Pid wrote:
> 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.

Something I didn't bother asking: what does the default Enum.toString
return?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3WM8ACgkQ9CaO5/Lv0PA1dgCghEZM8Y1K+hWs+jH6mUqGau4W
uz8An1VCUaS60Af2T8L54dd2c05tgQmf
=yrfV
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message