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 256028

Summary: Line is not indented correctly after a commented line
Product: editor Reporter: lvaills
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description lvaills 2015-10-19 18:42:48 UTC
Product Version = NetBeans IDE 8.1 RC2 (Build 201510122201)
Operating System = Linux version 3.16.0-44-generic running on i386
Java; VM; Vendor = 1.8.0_45
Runtime = Java HotSpot(TM) Client VM 25.45-b02

Reproducibility: Happens every time

STEPS:
  * Creates the following Java class : 
package org.lvaills.netbeans;

public class TestLineAfterComment {
    
    public static void main(String[] args) {
//        System.out.println("Hello World !");
int i;
i = 3;
    }
}

  * Select the lines "int i;" and "i = 3;"
  * Ctrl+i
  * Execute the action "Re-indent current line or selection"

ACTUAL:
  nothing happens

EXPECTED:
I expect to have the line "int i;" and "i = 3;" indented (with 8 spaces in that case).

Note that if I execute the action "Format (Source)" (Alt+Shift F) the lines are correctly indented.
Comment 1 lvaills 2015-10-19 18:42:52 UTC
Created attachment 156811 [details]
IDE log