Bug 302858

Summary: API promotion for CompilerOptions (internal -> public)
Product: [Eclipse Project] JDT Reporter: Gabriel BARBIER <barbier.gabriel>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: Olivier_Thomann
Version: 3.6   
Target Milestone: 3.6 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Gabriel BARBIER CLA 2010-02-15 09:05:37 EST
Hello,

In MoDisco project, we are using fields from org.eclipse.jdt.internal.compiler.impl.CompilerOptions
to indicate the version of jdk used.

This class is considered as internal, so I would like
to ask for its promotion as public. It is mainly
to avoid use of @SuppressWarnings("restriction") as 
required to join the Helios train.


Example of usage:
JavaConventions.validatePackageName(this.symbolicNameText.getText(),CompilerOptions.VERSION_1_6, CompilerOptions.VERSION_1_6);

Used by components:
- org.eclipse.gmt.modisco.workflow

Best regards
Gabriel
Comment 1 Olivier Thomann CLA 2010-02-15 09:16:32 EST
The same constants are available in the JavaCore class:

org.eclipse.jdt.core.JavaCore.VERSION_1_1
org.eclipse.jdt.core.JavaCore.VERSION_1_2
org.eclipse.jdt.core.JavaCore.VERSION_1_3
org.eclipse.jdt.core.JavaCore.VERSION_1_4
org.eclipse.jdt.core.JavaCore.VERSION_1_5
org.eclipse.jdt.core.JavaCore.VERSION_1_6
org.eclipse.jdt.core.JavaCore.VERSION_1_7
org.eclipse.jdt.core.JavaCore.VERSION_CLDC_1_1

These constants are API.

Closing as INVALID.
Comment 2 Gabriel BARBIER CLA 2010-02-15 09:20:41 EST
Thanks for the tip.
Comment 3 Olivier Thomann CLA 2010-03-09 15:33:15 EST
Resolved as INVALID.
Comment 4 Olivier Thomann CLA 2010-03-09 15:33:31 EST
Verified.