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 242243 - Custom template with scope Test Case fails
Summary: Custom template with scope Test Case fails
Status: RESOLVED INVALID
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-23 10:17 UTC by nigel
Modified: 2014-02-23 15:20 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 nigel 2014-02-23 10:17:42 UTC
Create template "abb" to insert code "int x = 1;".  Scope it by checking "IF" box.  In code type "abb" immediately after "if(true)" and press Tab>  Expansion takes place but with two unwanted Returns in it leading to error.
Comment 1 Jiri Prox 2014-02-23 15:20:31 UTC
The code templates does not check syntax of the replaced code, the code fragment cannot be used in this place - the formatter then fails due to syntax error in the code