groovy

Number conversion from BigDecimal to double does not work for Varargs

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1-beta-1
  • Fix Version/s: 1.1-beta-2
  • Component/s: None
  • Labels:
    None
  • Environment:
    Debian GNU/Linux is version 4.0r0, codenamed etch
    Groovy Version: 1.1-BETA-1 JVM: 1.6.0-b105
  • Number of attachments :
    0

Description

Number conversion from BigDecimal to double does not work for Varargs

Varargs are explained in
http://java.sun.com/j2se/1.5.0/docs/guide/language/varargs.html

Code Example:

// C.java
public class C {
public static void m(double... d) { }
}

// T.groovy
C.m(0.5, 0.5)

Error:
Caught: java.lang.IllegalArgumentException: argument type mismatch
at T.run(T.groovy:2)
at T.main(T.groovy)

Activity

Hide
blackdrag blackdrag added a comment -

implementeed

Show
blackdrag blackdrag added a comment - implementeed

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: