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 197585

Summary: Java code templates 'Psfm' is expanded with missing static
Product: editor Reporter: momotaro <momotaro>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:

Description momotaro 2011-04-09 06:33:08 UTC
NetBeans 7.0 RC2 for win32 on Windows 7 x64 and jdk 1.6.0 u24 x64.

In editing java source code, code template 'Psfm' is expect to expand
as following

public static final void method() {

}

but indeed expanded as following. 

public final void method() {

}

that is, keyword 'static' is missing.

I selected 'tool' menu > 'option', then show option dialog.
In option dialg, select 'editor' icon and 'code template' tab,
then show template list.
In template list, 'Psfm' is missing static.
expand text is same as Pfm's.
Comment 1 Dusan Balek 2011-04-11 08:02:27 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/cb85dbe9feae
Comment 2 Quality Engineering 2011-04-12 08:42:42 UTC
Integrated into 'main-golden', will be available in build *201104120401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cb85dbe9feae
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #197585: Java code templates 'Psfm' is expanded with missing static - fixed.