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.
Summary: | Code reformatting indents incorrectly after some code | ||
---|---|---|---|
Product: | editor | Reporter: | twolf2919 <twolf2919> |
Component: | Formatting & Indentation | Assignee: | issues@editor <issues> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows ME/2000 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
twolf2919
2004-03-31 22:20:22 UTC
Yes, handling of the multiline statements is clearly the deficiency of the current java indenter. Unfortunately we were not able to handle it appropriately yet. This is in fact dup of issue 6065. *** This issue has been marked as a duplicate of 6065 *** Milo, I'm not sure this is a duplicate of 6065 - since (1) 6065 doesn't mention that the code reformatter screws up subsequent indentation as my bug report does - it only says that it fails to indent multi-line code lines; (2) 6065 is currently marked an "Enhancement" - which this really isn't - it's a bug. I see I've read it wrongly - not the lines of the multi-line statement are wrongly indented but the lines that _follow_ it are wrongly indented. My sincerest apologies. The problem is that the indenter does not recognize "? :" operator statement properly and it incorrectly computes the indent of such statement. We should find a fix for this into promoD. problem already reported *** This issue has been marked as a duplicate of 23508 *** |