tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maximilian Stocker <...@talentoyster.com>
Subject RE: Inconsistent output of Java 5 enums
Date Fri, 15 Oct 2010 22:00:54 GMT
Okay. Then while I think it is a bug in tomcat (but it might be tomcat 5 that has the bug because
I still don't 100% understand what it *should* do) I am not sure what the problem is.

Do you want the toString value or the name() value? If it's the name value then there is no
danger in using it outside of c:out anyway because I am pretty sure you can't use characters
that would need to be escaped as enum labels to begin with. And if it's the toString then
c:out is using it...

-----Original Message-----
From: Oliver Siegmar [mailto:oliver@siegmar.org]
Sent: Friday, October 15, 2010 5:42 PM
To: Tomcat Users List
Subject: Re: Inconsistent output of Java 5 enums

Am Friday 15 October 2010 schrieb Maximilian Stocker:
> On tomcat 5.5. I get
>
> #1 = A is for Apple
> #2 = A is for Apple
>
> On tomcat 6 I get
>
> #1 = APPLE
> #2 = A is for Apple
>
> Which is obviously not the same, and surprised me, but it seems if I
> understand this thread that it is the opposite of what you are seeing and
> that I really don't understand.

No, that's exactly the same here.

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


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


Mime
View raw message