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 49043 - Two package declarations in newly created files
Summary: Two package declarations in newly created files
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows 3.1/NT
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2004-09-15 07:49 UTC by Jan Chalupa
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 Jan Chalupa 2004-09-15 07:49:48 UTC
[pre-beta2 20040915]

Just started the IDE with a clean userdir and
tried to create a new J2SE Java app with a default
main class. Two package declarations appeared in
the newly created file:

package myapp;
...
package Templates.Classes;

Apparently, the second declaration is not replaced
correctly by the first one.
Comment 1 Jan Chalupa 2004-09-15 07:50:47 UTC
Could be a side effect of issue #49013?
Comment 2 David Konecny 2004-09-15 08:26:10 UTC
"Could be a side effect of issue #49013?" - no.

Is it reproducible? On my WinXP (with beta2 branch build form
yersterday afternoon; with 49013 fix) it works fine.
Comment 3 Milan Kubec 2004-09-15 08:49:16 UTC
Reproducible for me on pre-beta2 200409150400 on WinXP.
Comment 4 Jan Chalupa 2004-09-15 08:58:08 UTC
David, please disregard. It appears to be a problem with the gjast.jar
version.
Comment 5 Tomas Hurka 2004-09-15 10:39:07 UTC
Fixed in branch release40_beta2

2004-09-15 08:22  thurka

        * java/parser/src/org/netbeans/lib/java/parser/ScannerToken.java:
         last part of bugfix #46451 merged to release40_beta2 branch
Comment 6 Jan Chalupa 2004-09-15 18:24:13 UTC
Verified. No longer reproducible in Beta 2 builds.
Comment 7 Quality Engineering 2007-09-20 12:48:35 UTC
Reorganization of java component