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 - [81cat] Code formatting wrong line wrapping.
Summary: [81cat] Code formatting wrong line wrapping.
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-13 14:49 UTC by -Silver-
Modified: 2015-09-22 11:34 UTC (History)
1 user (show)

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 -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 {