Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-406

Autoboxing not working for method parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-JSR-5
    • None
    • None

    Description

      def test(Double d)

      { println d; }

      println test(100)

      results in:

      Caught: groovy.lang.GroovyRuntimeException: failed to invoke method: org.codehaus.groovy.runtime.ReflectionMetaMethod@86d597[name: test params: [class java.lang.Double] returns: class java.lang.Object owner: class test4] on: test4@30b601 with arguments: [100] reason: java.lang.IllegalArgumentException: argument type mismatch

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            jamiemc Jamie McCrindle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: