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

Summary: bad cursor location after adding an annoyimous member class
Product: editor Reporter: FiruzzZ
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description FiruzzZ 2015-03-04 14:32:35 UTC
Every time I add an .addActionListener(new ActionListener() 
resulting in:
.addActionListener(new ActionListener() {

            @Override
            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