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 - java indenter bug
Summary: java indenter bug
Status: VERIFIED DUPLICATE of bug 23508
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker with 1 vote (vote)
Assignee: issues@editor
Depends on:
Reported: 2003-01-25 18:32 UTC by ngx472
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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".
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