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 250896 - bad cursor location after adding an annoyimous member class
Summary: bad cursor location after adding an annoyimous member class
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2015-03-04 14:32 UTC by FiruzzZ
Modified: 2015-03-16 11:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE log (126.74 KB, text/plain)
2015-03-04 14:32 UTC, FiruzzZ

Note You need to log in before you can comment on or make changes to this bug.
Description FiruzzZ 2015-03-04 14:32:35 UTC
Every time I add an .addActionListener(new ActionListener() 
resulting in:
.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
the cursor is placed between the last parenthesis and brace });  and it is collapsed
I have to move the cursor behind the method, uncollapse it (use the hotkey "CTRL +"), and then finally move inside annonymous Impl to remove the Throw and continue coding.

Hope made myself clear.

Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_11
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.11-b03
Comment 1 FiruzzZ 2015-03-04 14:32:40 UTC
Created attachment 152393 [details]
IDE log