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

Groovy-core compile errors in eclipse with 5.0 compiler enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-JSR-2
    • 1.0-JSR-5
    • groovy-jdk
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: