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 30346

Summary: java indenter bug
Product: editor Reporter: ngx472 <ngx472>
Component: -- Other --Assignee: issues@editor <issues>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description ngx472 2003-01-25 18:32:15 UTC
The indentation level is wrong after a ternary if

    String htmlName =
    (type == 'P' ?
    getProcIndexFileName( ABSOLUTE ) :
      (type == 't' ?
      getTriggerIndexFileName( ABSOLUTE ) :
        getViewAsProcIndexFileName( ABSOLUTE ))
        );
        
        PrintStream out = open( htmlName );
    // next stmt should be here!
Comment 1 Marian Mirilovic 2003-01-27 08:45:25 UTC
responsible editor, or java , feel freee to reassigne
Comment 2 ehucka 2003-01-29 16:32:15 UTC
Reproducible in 200301290100 on Linux.
Comment 3 Martin Roskanin 2003-02-28 15:41:01 UTC
At this time only P1s and P2s are allowed to be integrated into newly
created branch "release35". 
http://www.netbeans.org/servlets/ReadMsg?msgId=475395&listName=nbdev
Changing target milestone to 4.0

Comment 4 Martin Roskanin 2003-03-10 10:28:18 UTC
The indentation engine treats it as the case label. The problem is
already known. Duplicating with the issue #23508



*** This issue has been marked as a duplicate of 23508 ***
Comment 5 ngx472 2003-07-08 19:29:58 UTC
ok - duplicate