| Summary: | integration source build fails on XP | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Doug Felt (ICU4J) <dficu4j> |
| Component: | Releng | Assignee: | 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: | |||
Yep, same here (building on Solaris w/ 1.5.0_06) ... can work around by casting o2, ie:
return ((String)o1).compareTo((String)o2);
|
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)