public void generateDataValue(MethodBuilder mb, int collationType, LocalField field) { if (!JVMInfo.J2ME && getTypeId().isDecimalTypeId()) { // cast the value to a Number (from BigDecimal) for method resolution // For J2ME there is no implementation of Number for DECIMAL // so values are handled as thier original type, which is just // a String for DECIMAL constants from the parser. mb.upCast("java.lang.Number"); } super.generateDataValue(mb, collationType, field); }