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 254749 - WHILE_LOOP context is not recognized
Summary: WHILE_LOOP context is not recognized
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-26 09:48 UTC by stwr
Modified: 2015-09-02 05:15 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 stwr 2015-08-26 09:48:50 UTC
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.
Comment 1 Jiri Prox 2015-08-27 08:18:01 UTC
reproducible,

good catch!
Comment 2 Dusan Balek 2015-09-01 08:54:13 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/70b38cce6e0f
Comment 3 Quality Engineering 2015-09-02 05:15:32 UTC
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.