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 267549

Summary: [82cat] Paste formatted bad indentation pasting after comment
Product: java Reporter: mclaborn <mclaborn>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log
Before copy/paste
After paste formatted
The correct indentation

Description mclaborn 2016-08-11 17:58:53 UTC
Product Version = NetBeans IDE Dev (Build 201608100002)
Operating System = Linux version 4.4.0-34-generic running on amd64
Java; VM; Vendor = 1.8.0_102
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.102-b14

Reproducibility: Happens every time

When pasting a block of code (first line is not a comment) into an existing block (surrounded by braces), pasting after a // comment line, the first line of the pasted code is not correctly indented. 

Screen shots coming shortly.
Comment 1 mclaborn 2016-08-11 17:58:55 UTC
Created attachment 161637 [details]
IDE log
Comment 2 mclaborn 2016-08-11 18:00:29 UTC
Created attachment 161638 [details]
Before copy/paste
Comment 3 mclaborn 2016-08-11 18:00:30 UTC
Created attachment 161639 [details]
After paste formatted
Comment 4 mclaborn 2016-08-11 18:00:32 UTC
Created attachment 161640 [details]
The correct indentation