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

Groovy-core compile errors in eclipse with 5.0 compiler enabled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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)

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: