2008/4/16 <[EMAIL PROTECTED]>: > * Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=44766 > Handle custom subtypes of java.lang.Number > http://svn.apache.org/viewvc?view=rev&revision=646106 > - +1: markt, remm > + +1: markt, remm, rjung > -1: > + rjung: Simply use: "return Number.class.isAssignableFrom(type);" > + since all other conditions are special cases of this one. >
IMHO, Rainer is wrong here. Those other conditions cannot be satisfied with Number.class.isAssignableFrom(type). E.g., the following call returns false, as I have tested with Java 1.6.0_05: Number.class.isAssignableFrom(Integer.TYPE) Best regards, K.Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]