tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
https://issues.apache.org/bugzilla/show_bug.cgi?id=44766





--- Comment #2 from Konstantin Kolinko <knst.kolinko@gmail.com>  2008-04-08 18:39:52
PST ---
Created an attachment (id=21797)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message