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.
Product Version: NetBeans IDE Dev (Build 201508260002) Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb) --Use Case-- 1. Inside the method body type 'while(true) for' 2. Hit Tab to expand the 'for' code template --Expected Result-- Code template is correctly expanded. --Actual Result-- Code template is not expanded. Regular tab character is being inserted instead. --More Information-- Code template is correctly expanded only when there is no blank after while condition, i.e. 'while(true)for'. Moreover the issue happens only for the WHILE_LOOP context. It works perfectly good for i.e. the IF context. I did not try other contexts so far.
reproducible, good catch!
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/70b38cce6e0f
Integrated into 'main-silver', will be available in build *201509020320* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/70b38cce6e0f User: Dusan Balek <dbalek@netbeans.org> Log: Issue #254749 - WHILE_LOOP context is not recognized - fixed.