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

Methods are wrongly picked when the arguments are interfaces

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-JSR-3
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: