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 - Java code templates 'Psfm' is expanded with missing static
Summary: Java code templates 'Psfm' is expanded with missing static
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-09 06:33 UTC by momotaro
Modified: 2011-04-12 08:42 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 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.