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 228131 - TS 73 Formatting: 3. Multiline Alignment 2 is broken
Summary: TS 73 Formatting: 3. Multiline Alignment 2 is broken
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.3
Hardware: PC All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-01 12:16 UTC by fscherrer
Modified: 2013-04-02 14:33 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 fscherrer 2013-04-01 12:16:10 UTC
At the end of the "EXPECTED RESULT:" of "3. Multiline Alignment 2" of "TS 73 Formatting" (http://wiki.netbeans.org/TS_73_Formatting) we read:
"When the checkboxes are unchecked the value of continuation indentation is important again."
  That's no happening. The continuation indentation isn't being respected. It was ok in 7.2 and earlier releases. 
  Every time we edit a source code with an in-line initialized array and format it, the array code is wrong formatted, needing a special attention and extra work when commiting our changed to the VCS.

  Formatting config:

    Formatting > Java > Tabs And Indents
      Continuation Indentation Size: 4
    Formatting > Java > Alignment > Multiline Alignment:
      all unchecked

  Expected:
    beanTable.bind(presentation, new String[]{
          EstadoDTO.PROPERTY_NOME,
          EstadoDTO.PROPERTY_SIGLA,
          EstadoDTO.PROPERTY_CODIGOIBGE
        }, null);
  Got:
    beanTable.bind(presentation, new String[]{
      EstadoDTO.PROPERTY_NOME,
      EstadoDTO.PROPERTY_SIGLA,
      EstadoDTO.PROPERTY_CODIGOIBGE
    }, null);

  We've noticed this only with array initialization. Ex.: it's ok with methods parameters:
    private void myMethod(
        String myFirstParam,
        int mySecondParam) {
    }
  (The Continuation Indentation Size of 4 is being respected).

Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.6.0_38; Java HotSpot(TM) 64-Bit Server VM 20.13-b02
Runtime: Java(TM) SE Runtime Environment 1.6.0_38-b05
System: Linux version 3.7.10-gentoo running on amd64; UTF-8; en_US (nb)
User directory: /home/scherrer/.netbeans/7.3
Cache directory: /home/scherrer/.cache/netbeans/7.3
Comment 1 Dusan Balek 2013-04-02 14:33:16 UTC
Current behavior is as designed - upon many requests, formatting of:

    test(new String[] {
        "1",
        "2"
    });

has been changed in order to be consistent with:

    test(new Runnable() {
        public void run() {
        }
    });