| Summary: | Tag scanner does not respect source level | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Michael Rennie <Michael_Rennie> | ||||||||
| Component: | API Tools | Assignee: | Darin Wright <darin.eclipse> | ||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||
| Severity: | major | ||||||||||
| Priority: | P3 | CC: | darin.eclipse, Olivier_Thomann | ||||||||
| Version: | 3.4 | ||||||||||
| Target Milestone: | 3.5 M1 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 232404 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Michael Rennie
Created attachment 102084 [details]
patch
we can use an ICompilationUnit to get the settings we need in the IDE world, but in the ant task (headless) world we need to derive it. Since we don't have an EE context, we can use the related compliance level that would map to the EE returned from our Util.getDefaultEEId() (defaults to a compliance of 1.6).
In the Ant task, I think it would be safer to use the BREE ("Bundle-RequiredExecutionEnvironment:" header) from the MANIFEST.MF as a guide for source level options.
Created attachment 104190 [details]
updated patch
Updated patch to use the BREE to try and resolve a compiler compliance level in the ant task
The patch doesn't seem to support CLDC or Foundation EEs. Created attachment 104371 [details]
updated patch 2
further update to default to lower compliance, which covers CLDC / Foundation EE's
fixed in HEAD please verify Darin W Verified, but filed bug 237961 to deal with custom EE's and understanding how to map them to a compliance level. |