Summary: | Failure to resolve overriding method to the referenced interface when used with Ant | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Mike <michael> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED NOT_ECLIPSE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | eclipse, jarthana, Olivier_Thomann, remy.suen |
Version: | 3.6 | Keywords: | needinfo |
Target Milestone: | 3.6 M7 | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
Mike
2010-04-02 02:18:25 EDT
@Override for interface methods is a Java 6 thing. You need to ensure you have the correct settings in your Eclipse project and your Ant file (they should match, naturally). In particular: where the javac compiler always assumes it is targeted at its "own" version of java (that is, javac 1.6 targets Java 1.6 behavior by default), you have to explicitly target the Eclipse command-line compiler. I think the options are -target and -compliance, but I might be misremembering. I will give that a try. I believe the ant property is javac.target=1.6 I would need an ant script that reproduces the problem. I modified the original build file to specify a javac target as 1.6 and it works. Thanks for your help. Closing, not a bug. Verified for 3.6M7. |