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

Ambiguous method overloading for method ... interface parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-6
    • 1.0-RC-1
    • None
    • None
    • Sun JVM 1.5.0_06, linux x86

    Description

      • Two interfaces (AIf, BIf), one class, A, implementing both.
      • Two methods named test on B, with respectivly AIf and BIf for argument type.
      • Try to call one of the two B methods with a casted instance of A.
      • Obtain GroovyRuntimeException : "Ambiguous method overloading for method ...".

      It seemed to be fixed but (http://jira.codehaus.org/browse/GROOVY-956) but with JSR-06 it doesn't work.

      See attachment to make evidence of the (or my) problem.

      Attachments

        1. test.groovy
          0.5 kB
          Alexandre SIMON

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: