Re: Strange difference in behavior ELSupport in Tomcat 6.0.20 and Tomcat 6.0.26

2010-09-27 Thread Mark Thomas
On 27/09/2010 03:39, sbrejeon wrote: > The spec says that "If A or B is an enum, coerce both A and B to enum, apply > operator". > Does't it simply mean that both A and B must be coercible to enums. instead > of if A is an enum then B must be an enum of type A, or vice versa. No. Both must be of t

Re: Strange difference in behavior ELSupport in Tomcat 6.0.20 and Tomcat 6.0.26

2010-09-26 Thread sbrejeon
markt-2 wrote: > > On 27/09/2010 02:23, sbrejeon wrote: >> A.test==B.test throws the exception. couldn't it just return false? > > Such a change would put Tomcat's EL implementation in breach of the EL > spec so this behaviour will not be changed. > > Mark > Thank you for your quick reply.

Re: Strange difference in behavior ELSupport in Tomcat 6.0.20 and Tomcat 6.0.26

2010-09-26 Thread Mark Thomas
On 27/09/2010 02:23, sbrejeon wrote: > A.test==B.test throws the exception. couldn't it just return false? Such a change would put Tomcat's EL implementation in breach of the EL spec so this behaviour will not be changed. Mark -

Re: Strange difference in behavior ELSupport in Tomcat 6.0.20 and Tomcat 6.0.26

2010-09-26 Thread sbrejeon
Konstantin Kolinko wrote: > > 2010/7/6 Roxana : > BTW, if you really need to compare apples with oranges, you can > convert one of them or both to strings. > Best regards, > Konstantin Kolinko > http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/lang/ELSupport.java?revision=981816&vi

Re: Strange difference in behavior ELSupport in Tomcat 6.0.20 and Tomcat 6.0.26

2010-07-07 Thread Konstantin Kolinko
2010/7/6 Roxana : > > What i don't understand is why, with the same code , Tomcat 6.0.20 didn't > complain.  Is the type check in ELSupport stronger now? Yes, it is stronger. > In my case i try to compare two different enums: DocboxListColumn  and > GenericListColumn, but they both implement  int

Re: Strange difference in behavior ELSupport in Tomcat 6.0.20 and Tomcat 6.0.26

2010-07-07 Thread Mark Thomas
On 06/07/2010 22:20, Pid wrote: On 06/07/2010 18:20, Roxana wrote: What i don't understand is why, with the same code , Tomcat 6.0.20 didn't complain. Is the type check in ELSupport stronger now? Have you read to EL specification to see what the correct behaviour should be? Have you look

Re: Strange difference in behavior ELSupport in Tomcat 6.0.20 and Tomcat 6.0.26

2010-07-06 Thread Pid
On 06/07/2010 18:20, Roxana wrote: > Hi, > > I have a problem that i don't understand and i hope you can help me with. > > I migrate from Tomcat 6.0.20 to Tomcat 6.0.26 and suddenly i get an > exception like this: > > 05-Jul-2010 16:22:50 org.apache.catalina.core.StandardWrapperValve invoke > S