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

missing method list in exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.1-rc-1
    • 1.1-rc-2
    • None
    • None

    Description

      using this script:

      def foo(Number s){}
      def foo(int i ){}

      foo()

      an exception is thrown whcih looks like:

      Caught: groovy.lang.GroovyRuntimeException: Could not find which method to invoke from this list: org.codehaus.groovy.reflection.FastArray@9df354 for arguments: {}
      groovy.lang.GroovyRuntimeException: Could not find which method to invoke from this list: org.codehaus.groovy.reflection.FastArray@9df354 for arguments: {}

      the org.codehaus.groovy.reflection.FastArray@9df354 is wrong, at his place there should be a list of the available methods of that name that is foo(Number) and foo(int), but no toString default implementation. This text is important for the user to find an error.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: