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 240338

Summary: Move down in AST doesn't support anonymous members
Product: java Reporter: markiewb
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Shows the expected behaviour

Description markiewb 2014-01-12 12:47:26 UTC
Created attachment 143857 [details]
Shows the expected behaviour

Testcase: http://services.netbeans.org/synergy/client/app/index.html#/case/2295/suite/1289/v/1

See screenshot. 
ACTUAL: I cannot move the expression into a inner anonymous member.
EXPECTED: I can move the expression into a inner anonymous member.


Product Version: NetBeans IDE 8.0 Beta (Build 201401091443)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Dusan Balek 2014-01-13 17:24:53 UTC
Actually, this is as designed behavior of the Move Code Element Up/Down actions (Alt-Shift-PgUp/PgUp), that can be used either to move members of a class up/down within the given class or to move statements up/down within a method body. These two cannot be mixed together.
Comment 2 Jiri Prox 2014-01-14 06:42:29 UTC
OK, I'll update the test specification