This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | SecurityException: Prohibited package name: java | ||
---|---|---|---|
Product: | javaee | Reporter: | Martin Fousek <marfous> |
Component: | Code | Assignee: | Vadiraj Deshpande <vadirajvd> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | emononen |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=120658 | ||
Issue Type: | DEFECT | Exception Reporter: | 120658 |
Attachments: |
stacktrace
Proposed patch. Incorporated Erno's comments. |
Description
Martin Fousek
2008-09-30 08:23:39 UTC
Created attachment 70871 [details]
stacktrace
Will be taken up in 7.0. This issue belongs to j2ee.core.utilities module, since Hibernate module is using the API provided by that module. The API has this bug. According to Java Language specification, http://java.sun.com/docs/books/jls/third_edition/html/names.html#73307 'java' is a reserved package names for JDK itself and hence cannot be used for other applications. Created attachment 74509 [details]
Proposed patch.
Moving to j2ee>code (I guess this is the issuezilla component/subcomponent for j2ee.core.utilities mercurial module) Please could somebody review the attached patch for this issue ? Comments from Erno : Hi Vadiraj, You might want to check for exact string 'java'.. and for 'java.something'.. Please update the unit tests. -Erno. Created attachment 74680 [details]
Incorporated Erno's comments.
Erno says : LGTM.. |