Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 125086

Summary: integration source build fails on XP
Product: [Eclipse Project] Platform Reporter: Doug Felt (ICU4J) <dficu4j>
Component: RelengAssignee: Sonia Dimitrov <sonia_dimitrov>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, pombredanne
Version: 3.2   
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Doug Felt (ICU4J) CLA 2006-01-24 17:42:56 EST
building from source with Sun JDK 1.5.0 and Ant-1.6.1 on WinXP sp1 I encounter the following errors:

    [javac] ----------
    [javac] 1. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt.ui
\ui\org\eclipse\jdt\internal\ui\javaeditor\AddImportOnSelectionAction.java
    [javac]  (at line 81)
    [javac]     return ((String)o1).compareTo(o2);
    [javac]                         ^^^^^^^^^
    [javac] The method compareTo(String) in the type String is not applicable fo
r the arguments (Object)
    [javac] ----------
    [javac] ----------
    [javac] 2. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt.ui
\ui\org\eclipse\jdt\ui\actions\OrganizeImportsAction.java
    [javac]  (at line 147)
    [javac]     return ((String)o1).compareTo(o2);
    [javac]                         ^^^^^^^^^
    [javac] The method compareTo(String) in the type String is not applicable fo
r the arguments (Object)
    [javac] ----------
    [javac] 2 problems (2 errors)
Comment 1 Iain MacDonnell CLA 2006-02-05 17:47:15 EST
Yep, same here (building on Solaris w/ 1.5.0_06) ... can work around by casting o2, ie:

    return ((String)o1).compareTo((String)o2);

Comment 2 Sonia Dimitrov CLA 2006-02-06 16:32:31 EST

*** This bug has been marked as a duplicate of 125091 ***