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 268248 - "Remove" and "Delete added text" functions remove closing brackets
Summary: "Remove" and "Delete added text" functions remove closing brackets
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: History (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-28 12:49 UTC by t_gergely
Modified: 2016-09-28 12:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description t_gergely 2016-09-28 12:49:54 UTC
Save a source file with a method containing an inner block (eg. for loop):

public class NewClass {
  public static void main(String[] args) {
    {
      
    }
  }
}

Now, add a comment in the line of the closing bracket.

public class NewClass {
  public static void main(String[] args) {
    {
      
    } // Whatever
  }
}

Using the the History/Remove function will incorrectly remove the whole line, including the closing bracket.

public class NewClass {
  public static void main(String[] args) {
    {
      
  }
}