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 103853 - Create new Class with wizard generates wrong source
Summary: Create new Class with wizard generates wrong source
Status: RESOLVED DUPLICATE of bug 103673
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 103865 103964 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-12 19:05 UTC by hlein
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 hlein 2007-05-12 19:05:08 UTC
Sourcefile = TestClass.java (ok)

- In the comments at top the classname and creation date is not filled in
- the package name is wrong (should be gedrelations)
- the generated class is wrong (should be TestClass)

This output is always the same regardless of where and with which classname the
file is created.

Netbeans is version 6.0 M9

The created Java file:
/*
 * __NAME__.java
 *
 * Created on __DATE__, __TIME__
 * $Id$
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package Templates.Classes;

/**
 *
 * @author __USER__
 */
public class Class {

    /** Creates a new instance of __NAME__ */
    public Class() {
    }

}
Comment 1 Jiri Prox 2007-05-14 11:59:18 UTC
*** Issue 103865 has been marked as a duplicate of this issue. ***
Comment 2 Marian Mirilovic 2007-05-15 10:15:51 UTC
*** Issue 103964 has been marked as a duplicate of this issue. ***
Comment 3 Marian Mirilovic 2007-05-15 10:18:51 UTC
I can't reproduce it ;( Did you import settings from previous version ?
Comment 4 Jan Pokorsky 2007-05-15 12:34:28 UTC
remove your {netbeans.userdir}/config/Templates folder

*** This issue has been marked as a duplicate of 103673 ***