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
... } Like the original creator of this post, I have a series of enums of different types that implement a common interface. I need to be able to compare them and I don't want to have to translate them to Strings. Regards Sbrejeon -- View this message in context: http://old.nabble.co

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
ssage in context: http://old.nabble.com/Strange-difference-in-behavior-ELSupport-in-Tomcat-6.0.20-and-Tomcat--6.0.26-tp29088066p29815264.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

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

Strange difference in behavior ELSupport in Tomcat 6.0.20 and Tomcat 6.0.26

2010-07-06 Thread Roxana
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 SEVERE: Servlet.service() for servlet jsp threw except