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

Methods are wrongly picked when the arguments are interfaces

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment