Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Following code produces warning "Argument 0 is not a number":
java.math.BigDecimal bigDecimal = java.math.BigDecimal.ONE;
java.text.MessageFormat.format("{0,number,#0.00}", bigDecimal);
That is incorrect, because java.math.BigDecimal is a subclass of java.lang.Number. It's not limited to java.math.BigDecimal, as all non-primitive arguments produce the same warning.