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 250342

Summary: Code template expansion listens for too long
Product: editor Reporter: shredder121
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.0.2   
Hardware: PC   
OS: Windows 8   
Issue Type: ENHANCEMENT Exception Reporter:

Description shredder121 2015-02-10 13:34:33 UTC
Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Windows 8.1 version 6.3 running on amd64
Java; VM; Vendor = 1.7.0_65
Runtime = OpenJDK 64-Bit Server VM 24.65-b04

Steps to reproduce:
- Set template expansion to space
- Set auto-completion pop up to 'any java identifier part'

Given a code element (method, class) with the given contents:

public class TemplateExpansion {

    private String fyyBar;

    public TemplateExpansion() {
        [caret here]
    }
}

- type in 'f' or 'fy' (this should bring up the completions)
- accept fyyBar with enter
- press space

It should expand 'f' or 'fy' to its actual template.

Incidentally, forBar or foreBar DO work.