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 91266

Summary: GenerationUtils#createClass and #createInterface do not work
Product: javaee Reporter: Erno Mononen <emononen>
Component: CodeAssignee: Andrei Badea <abadea>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 90607    

Description Erno Mononen 2006-12-19 10:42:28 UTC
The methods in o.n.m.j2ee.common.source.GenerationUtils that create classes / 
interfaces from templates, i.e. createClass(..) and createInterface(..) don't 
work. The returned file object representing the created class contains only 
javadoc and a string "package", like the following:

/*
 * NewTestClass.java
 *
 * Created on 19 December 2006, 11:38
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package  

The respective test cases fail as well.
Comment 1 Andrei Badea 2006-12-20 15:08:43 UTC

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