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 49001 - Wrong package names of classes created from templates
Summary: Wrong package names of classes created from templates
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: _ tball
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2004-09-14 13:54 UTC by Petr Hrebejk
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Hrebejk 2004-09-14 13:54:57 UTC
In the Beta 2 build. Any class created from
templated (using new file wizard) has a packakage
set to templates.<somefolder> where <somefolder>
is the folder of the template.

Replacing the gjast.jar version 1.75 with the
version 1.72 seems to fix the problem
Comment 1 Tomas Hurka 2004-09-14 14:00:31 UTC
This is caused by wrong integration of bug #48858. Instead of commiting diff between 
gjast v 1.14 and 1.75, release40_beta2 brach contains unmodified version 1.75.
See bellow.

[thurka-mac:nb_all/java/external] thurka% cvs update -r 1.75 gjast.jar.scrambled 
U gjast.jar.scrambled
[thurka-mac:nb_all/java/external] thurka% sum gjast.jar.scrambled
59825 1953 gjast.jar.scrambled
[thurka-mac:nb_all/java/external] thurka% cvs update -r release40_beta2 
gjast.jar.scrambled
U gjast.jar.scrambled
[thurka-mac:nb_all/java/external] thurka% sum gjast.jar.scrambled
59825 1953 gjast.jar.scrambled
[thurka-mac:nb_all/java/external] thurka% 

I will rollback integration of issue #48858 to release40_beta2 branch.
Comment 2 Tomas Hurka 2004-09-14 14:09:10 UTC
Last gjast.jar.scrambled commit rolled back. release40_beta2 branch contains 
gjast.jar.scrambled v 1.72

Checking in gjast.jar.scrambled;
/cvs/java/external/gjast.jar.scrambled,v  <--  gjast.jar.scrambled
new revision: 1.72.4.2; previous revision: 1.72.4.1
done
Comment 3 _ tball 2004-09-14 15:41:27 UTC
You want the fix from 1.14?  That is from April 28th...
Comment 4 Tomas Hurka 2004-09-14 15:46:03 UTC
Should be:
Instead of commiting diff between gjast v 1.74 and 1.75 
Comment 5 _ tball 2004-09-14 16:05:21 UTC
Now I am *really* confused -- the "diff" between version 1.74 and 1.75
*is* 1.75.  1.75 contains the one fix you need.  Do you mean 1.72 and
1.75, since you replaced it with 1.72?
Comment 6 Tomas Hurka 2004-09-14 16:19:46 UTC
Version 1.75 also contains fixes from 
version 1.74  (46451: set astContext in tokens)
and 1.73 (Added gjast.debug.paths property to help error-checker path debugging.)
but you should merge just fix for issue #48858

To do so, you have to checkout gjast sources, which corresponds to version 1.72 and 
add just those changes you made between version 1.74 and 1.75. Compile this version 
of gjast and commit it to release40_beta2.

Comment 7 _ tball 2004-09-14 16:43:40 UTC
Okay, so you really wanted 1.72 plus the one fix.  That makes much
more sense than the 1.14 or 1.74 from your earlier comments.
Comment 8 Jiri Prox 2005-07-12 11:32:04 UTC
Verified in 4.2 (200507110943)
Comment 9 Quality Engineering 2007-09-20 12:36:55 UTC
Reorganization of java component