Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350349 - importPackage does not allow certain words in package name
Summary: importPackage does not allow certain words in package name
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.0   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: 4.5.0 M3   Edit
Assignee: Wei Yan CLA
QA Contact: Morris Kleiman CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-25 07:49 EDT by Prashant Mising name CLA
Modified: 2014-10-14 11:32 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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