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
-
Number of attachments :
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)
Issue Links
- is related to
-
GROOVY-834
Many, many compiler warnings (Eclipse 3.1 M6)
-
I can confirm those 3 errors w/ JDK5 and Eclipse 3.1M6.
My solution was to create an project specific 1.4 compiler target, which is stored by Eclipse under "groovy-core/.settings/". Yesterday, I added the ".settings" pattern to the local ".cvsignore" file and did not submit those working compiler settings.
I upload those ".settings" now as a work around – but the compile error should not happen and get fixed soon!