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 - [82cat] Paste formatted bad indentation pasting after comment
Summary: [82cat] Paste formatted bad indentation pasting after comment
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-11 17:58 UTC by mclaborn
Modified: 2016-10-03 13:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (202.96 KB, text/plain)
2016-08-11 17:58 UTC, mclaborn
Details
Before copy/paste (4.11 KB, image/png)
2016-08-11 18:00 UTC, mclaborn
Details
After paste formatted (4.06 KB, image/png)
2016-08-11 18:00 UTC, mclaborn
Details
The correct indentation (4.17 KB, image/png)
2016-08-11 18:00 UTC, mclaborn
Details

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