Bug 165954 - [API] JavaCore should have an option to set the compiler's settings according to a compliance
Summary: [API] JavaCore should have an option to set the compiler's settings according...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks: 165223
  Show dependency tree
 
Reported: 2006-11-27 13:58 EST by Olivier Thomann CLA
Modified: 2006-12-12 12:08 EST (History)
1 user (show)

See Also:


Attachments
Proposed fix (8.80 KB, patch)
2006-11-27 14:28 EST, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2006-11-27 13:58:56 EST
In order to fix bug 165223, JavaCore should have a new API to change the compiler's options according to a compliance.
The suggested API is:

public static void setCompilanceOptions(String compliance, Map map) {
...
}

This would modify the source, target and compliance settings inside the given map.
Comment 1 Olivier Thomann CLA 2006-11-27 14:28:01 EST
Created attachment 54573 [details]
Proposed fix
Comment 2 Olivier Thomann CLA 2006-11-27 14:28:30 EST
Philippe,

This also completes the addition of the 1.7 constant inside the JavaCore options.
Comment 3 Olivier Thomann CLA 2006-11-27 15:54:13 EST
Released for 3.3M4.
To verify, simply check that the new API is there in the help contents.
Comment 4 David Audel CLA 2006-12-12 12:08:44 EST
Verified for 3.3M4 with I20061212-0010.