| Summary: | Java Compiler using JDK 6.0 and compliance to 1.4 does not see the incompatible java.util.Arrays methods | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Dervillo <eduardo.oliveirared> |
| Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclipse, Olivier_Thomann |
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Dervillo
The Arrays methods are part of the JRE, not part of the language. In addition to setting the compiler compliance to 1.4, you also need to specify a 1.4 JRE. Did you do that? The compiler doesn't detect that as it takes whatever is available on the classpath. So if you really want to be compliant with 1.4, simply set 1.4 libraries on the classpath. Now from within eclipse, you can convert your java project to be a PDE project and then set it to use API Tools. API tools has all what you need to detect these wrong usages. See the following blog entry: http://olivier-eclipse.blogspot.com/2010/11/workspace-settings-vs-project-settings.html *** This bug has been marked as a duplicate of bug 256034 *** |