Summary: | [compiler] Ant adapter doesn't use the right source and target values | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | philippe_mulet | ||||
Version: | 3.1 | ||||||
Target Milestone: | 3.2 M6 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Olivier Thomann
2005-07-20 13:37:28 EDT
Created attachment 25064 [details]
Proposed fix
With this fix it works fine.
I didn't use the same mecanism for didSpecifyCompliance because the user might
want to override the inferred compliance in a compilerarg argument.
Will it allow me to do: -1.5 -source 1.3 -target 1.4 ? No. This is not intended. It would still be rejected. Target level cannot be higher than the source level. I don't know if we should allow source and target values to be specified through the compiler arg since the javac task has some predefined attributes for source and target. Fixed and released in HEAD. There is no regression test for the ant adapter. Verified for 3.2 M6 using build I20060328-0010 |