Bug 165954

Summary: [API] JavaCore should have an option to set the compiler's settings according to a compliance
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: philippe_mulet
Version: 3.3Keywords: api
Target Milestone: 3.3 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 165223    
Attachments:
Description Flags
Proposed fix none

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.