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

compile error with covariant bridge method added for already existing method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6-beta-2
    • 1.6-rc-1, 1.5.8, 1.7-beta-1
    • None
    • None
    • Win XP SP2, JRE 1.6.0

    Description

      Open groovyConsole, enter:

      class Foo {
      @Delegate Date d = new Date();
      }

      Press Ctrl+Enter. Error displayed:

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script14: -1: Repetitive method name/signature for method 'int compareTo(java.lang.Object)' in class 'Foo'.
      @ line -1, column -1.Script14: -1: Repetitive method name/signature for method 'int compareTo(java.lang.Object)' in class 'Foo'.
      @ line -1, column -1.
      2 errors

      Note: changing Date to other classes such as Map works fine, seems to be something specific about Date.

      Attachments

        1. 3089Patch.zip
          2 kB
          Roshan Dawrani
        2. 3089_v15xPatch_Testcase.zip
          1 kB
          Roshan Dawrani

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: