Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350349

Summary: importPackage does not allow certain words in package name
Product: z_Archived Reporter: Prashant Mising name <prashantmirajkar>
Component: BIRTAssignee: Wei Yan <wyan>
Status: RESOLVED WONTFIX QA Contact: Morris Kleiman <mkleiman>
Severity: blocker    
Priority: P3 CC: bluesoldier, wyan
Version: 2.6.0   
Target Milestone: 4.5.0 M3   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Prashant Mising name CLA 2011-06-25 07:49:23 EDT
If one uses javascript keywords in java package names, importPackage fails.

For example I have java packages starting with in prefix e.g. "in.opencombine.util" and need to use classes in BIRT reports.
Comment 1 Prashant Mising name CLA 2012-12-29 13:18:45 EST
Is this being taken up?
Comment 2 Wei Yan CLA 2014-10-14 11:32:30 EDT
It is not suggest to use java keyword in package name, see:

http://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html

In some cases, the internet domain name may not be a valid package name. This can occur if the domain name contains a hyphen or other special character, if the package name begins with a digit or other character that is illegal to use as the beginning of a Java name, or if the package name contains a reserved Java keyword, such as "int". In this event, the suggested convention is to add an underscore