Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-4
-
None
Description
import java.text.DecimalFormat
df = new DecimalFormat()
println df.format(1)
throws
Caught: groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.text.DecimalFormat#format.
Cannot resolve which method to invoke for
due to overlapping prototypes between:
{double} {long}Very good error message
But it should choose the metyhod which takes long.