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 - Move down in AST doesn't support anonymous members
Summary: Move down in AST doesn't support anonymous members
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-12 12:47 UTC by markiewb
Modified: 2014-01-14 06:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows the expected behaviour (56.87 KB, image/png)
2014-01-12 12:47 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
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