View Full Version : [CLOSED] GridView - unnesessary cast BigDecimal to Double

15 Nov 2010, 6:40 AM
Class method
protected String getRenderedValue(ColumnData data, int rowIndex, int colIndex, ModelData m, String property)has a unnecessary cast:

if (val != null && val instanceof Number && c.getNumberFormat() != null) {
Number n = (Number) val;
val = c.getNumberFormat().format(n.doubleValue());
}Currently NumberFormat has together
public String format(double number) and
public String format(Number number) method and doubleValue() can lose range of BigDecimal.

15 Nov 2010, 6:43 AM
This is a GWT feature that is not backward compatible. GWT 2 and GWT 1.7 dont support this

15 Nov 2010, 6:43 AM
We will add support for this in GXT3