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

Methods are wrongly picked when the arguments are interfaces

    XMLWordPrintableJSON

Details

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

    Description

      • unzip the attached archive
      • cd into the groovytestcase dir
      • execute 'javac *.java; groovy PrintTest'

      You'll see:
      object:toString sometext
      while the output should be:
      sometext

      The method with argument ICustom isn't selected since MetaClass.isSuperclass(Class claszz, Class superclass) doesn't handle interfaces

      Attachments

        1. groovytestcase.zip
          1 kB
          Geert Bevin

        Activity

          People

            blackdrag Jochen Theodorou
            gbevin Geert Bevin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: