tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 44766] Tomcat's EL implementation doesn' t coerce custom Number subclasses
Date Wed, 09 Apr 2008 01:39:52 GMT

--- Comment #2 from Konstantin Kolinko <>  2008-04-08 18:39:52
PST ---
Created an attachment (id=21797)
 --> (
Code cleanup for org.apache.el.* - removes attempts to compare Object classes
against primitive types.

Code cleanup for several classes in org.apache.el.**

In those classes there are places where java.lang.Class instances are compared
against classes of primitive types (such as Long.TYPE, Integer.TYPE, etc.)

In the case when those java.lang.Class instances are a result of
object.getClass() call (that is, obtained from an Object), they cannot be equal
to a primitive type.  In such case these comparisons are no-op, producing the
value of false.

This patch removes these no-op comparisons from the code.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message