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.

Bug 50027 - [40cat] Incorrect replacement of __PACKAGE__ in Template
Summary: [40cat] Incorrect replacement of __PACKAGE__ in Template
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-06 16:10 UTC by hopeless
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The template file using a __PACKAGE__ macro (424 bytes, text/plain)
2004-10-06 16:12 UTC, hopeless
Details
The resulting new file which has the package in slashes (402 bytes, patch)
2004-10-06 16:13 UTC, hopeless
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description hopeless 2004-10-06 16:10:37 UTC
[ BUILD # : 200409220845 ]
[ JDK VERSION : J2SE 1.5.0 ]

I'm wondering, have the macros for java templates
files changed?  Previously in 3.6, __PACKAGE__
inserted the current package name but now it
inserts the package name with slashes, which was
previously done as __PACKAGE_SLASHES__.  I believe
this is a bug

I shall attach the template and the resulting file.
Comment 1 hopeless 2004-10-06 16:12:58 UTC
Created attachment 18094 [details]
The template file using a __PACKAGE__ macro
Comment 2 hopeless 2004-10-06 16:13:45 UTC
Created attachment 18095 [details]
The resulting new file which has the package in slashes
Comment 3 Pavel Flaska 2004-10-06 16:21:46 UTC
You are right, it is a bug.
Comment 4 Pavel Flaska 2004-10-07 10:19:59 UTC
Similar problem in issue #49368.
(Both issues indicate problem with slashes in package name)
Comment 5 Pavel Flaska 2004-10-07 12:26:37 UTC
Fixed.

Checking in src/org/netbeans/modules/java/JavaDataLoader.java;
/cvs/java/src/org/netbeans/modules/java/JavaDataLoader.java,v  <-- 
JavaDataLoader.java
new revision: 1.72; previous revision: 1.71
done
Processing log script arguments...
Comment 6 Pavel Flaska 2004-10-07 12:27:13 UTC
x