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 114296 - New Java Class generates the wrong class name
Summary: New Java Class generates the wrong class name
Status: RESOLVED FIXED
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:
Depends on:
Blocks:
 
Reported: 2007-08-30 23:49 UTC by _ gtzabari
Modified: 2007-09-26 09:14 UTC (History)
0 users

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 _ gtzabari 2007-08-30 23:49:47 UTC
dev build 20070830000

I use the wizard to create a "New Java Class" with a name "Foo". A new file is created with the correct filename but its
contents is incorrect. The contents are:

/*
 * Specification.java
 * 
 * Created on 30-Aug-2007, 6:43:56 PM
 * 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jpatest;

/**
 *
 * @author Gili
 */
public class Specification {

}

   Where "Specification" is coincidently the last class file that the wizard successfully created. That is, sometimes
the wizard words, other times it does not. When it does not it seems to pick up the name of the last successfully
created class. I suspect this might be related to issue #114189 because I've only started seeing both these errors recently.
Comment 1 novakm 2007-09-03 09:18:01 UTC
Reassigning to openide - wizards for evaluation. I hope it's the right component.
Comment 2 Petr Hrebejk 2007-09-07 11:36:25 UTC
I think this has been foxed recently. Was a mistake in core templating system. If it occurres again please reopen and
assign to core.  
Comment 3 Quality Engineering 2007-09-20 10:49:06 UTC
Reorganization of java component