Groovy
  1. Groovy
  2. GROOVY-833

Groovy-core compile errors in eclipse with 5.0 compiler enabled

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0-JSR-2
    • Fix Version/s: 1.0-JSR-5
    • Component/s: groovy-jdk
    • Labels:
      None
    • Environment:
      Eclipse 3.1M5, JDK 5.0

      Description

      Using eclipse with the 5.0 compiler (instead of the 1.4 compiler) causes the following ERRORs:

      org/codehaus/groovy/runtime/DefaultGroovyMethods.java (line 3355)
      The method compareTo(BigInteger) in the type BigInteger is not applicable for the arguments (BigDecimal)

      org/codehaus/groovy/runtime/WriteFile.java (line 102)
      Name clash: The method compareTo(Object) of type WritableFile has the same erasure as compareTo(T) of type Comparable<T> but does not override it

      org/codehaus/groovy/runtime/WriteFile.java (line 103)
      The method compareTo(File) in the type File is not applicable for the arguments (Object)

      1. groovy.java5.patch
        7 kB
        mguillem
      2. WritableFile.java
        3 kB
        mguillem

        Issue Links

          Activity

          Hein Meling created issue -
          sormuras made changes -
          Field Original Value New Value
          Link This issue is related to GROOVY-834 [ GROOVY-834 ]
          mguillem made changes -
          Attachment groovy.java5.patch [ 20950 ]
          Dierk König made changes -
          Assignee Dierk Koenig [ codevise ]
          Dierk König made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.0-JSR5 [ 12370 ]
          Resolution Fixed [ 1 ]
          sormuras made changes -
          Status Resolved [ 5 ] Reopened [ 4 ]
          Resolution Fixed [ 1 ]
          mguillem made changes -
          Attachment WritableFile.java [ 20971 ]
          Dierk König made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Resolved [ 5 ]
          Paul King made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
          Mark Thomas made changes -
          Workflow jira [ 12729983 ] Default workflow, editable Closed status [ 12741005 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
          Mark Thomas made changes -
          Workflow jira [ 12967581 ] Default workflow, editable Closed status [ 12975339 ]

            People

            • Assignee:
              Dierk König
              Reporter:
              Hein Meling
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development