groovy
  1. groovy
  2. GROOVY-3089

compile error with covariant bridge method added for already existing method

    Details

    • Type: Bug Bug
    • Status: Closed 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
    • Number of attachments :
      2

      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.

        Activity

          People

          • Assignee:
            blackdrag blackdrag
            Reporter:
            Simon
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: