Groovy
  1. Groovy
  2. GROOVY-3089

compile error with covariant bridge method added for already existing method

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6-beta-2
    • Fix Version/s: 1.6-rc-1, 1.5.8, 1.7-beta-1
    • Component/s: None
    • Labels:
      None
    • Environment:
      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.

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

        Activity

        SimonDZhu created issue -
        Guillaume Delcroix made changes -
        Field Original Value New Value
        Fix Version/s 1.6-rc-1 [ 14009 ]
        Assignee Alex Tkachman [ ait ]
        Guillaume Delcroix made changes -
        Fix Version/s 1.7 [ 14014 ]
        Roshan Dawrani made changes -
        Attachment 3089Patch.zip [ 38285 ]
        Roshan Dawrani made changes -
        Attachment 3089_v15xPatch_Testcase.zip [ 38290 ]
        Jochen Theodorou made changes -
        Summary Compile Error with @Delegate using Date compile error with covariant bridge method added for already existing method
        Fix Version/s 1.5.8 [ 14630 ]
        Jochen Theodorou made changes -
        Assignee Alex Tkachman [ ait ] Jochen Theodorou [ blackdrag ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12732093 ] Default workflow, editable Closed status [ 12743930 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12969996 ] Default workflow, editable Closed status [ 12977765 ]

          People

          • Assignee:
            Jochen Theodorou
            Reporter:
            SimonDZhu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development