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 254347

Summary: [81cat] Code formatting wrong line wrapping.
Product: java Reporter: -Silver-
Component: SourceAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: sdedic
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description -Silver- 2015-08-13 14:49:35 UTC
Test case:
http://services.netbeans.org/synergy/client/app/#/assignment/1397/v/1

1. Open Wrapping1.java from the test project.
2. From Option panel -> formatting tab select Language: Java, Category Wrapping.
3. Set "Extends/Implements LIST" to "Always"
4. Accept the setting and in the editor hit SHIFT + ALT + F to format the file.

Original formatting of the code:

public class Wrapping1 extends DefaultTableModel {
    class InnerClassAgainWithLongName implements Serializable, Cloneable {


Expected behavior:
Each extended class or implemented interface should be on a new line.

public class Wrapping1 extends 
    DefaultTableModel {
    class InnerClassAgainWithLongName implements 
        Serializable, 
        Cloneable {

Actual behavior: 
The extended class (DefaultTableModel) is not on a new line

public class Wrapping1 extends DefaultTableModel {
	 class InnerClassAgainWithLongName implements
		 Serializable,
		 Cloneable {
Comment 1 -Silver- 2015-08-13 15:22:41 UTC
It seems that there is the same behavior also for the other options when always is selected.
Comment 2 manikantannaren 2015-08-24 06:27:38 UTC
On Build:201508230002
The actual result is now
public class Wrapping1
  extends DefaultTableModel {


Expected result was
public class Wrapping1 extends 
  DefaultTableModel {