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 124526 - Auto-Formatting changes the semantic of the program.
Summary: Auto-Formatting changes the semantic of the program.
Status: RESOLVED DUPLICATE of bug 123258
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-30 19:46 UTC by gaflach
Modified: 2007-12-30 20:17 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 gaflach 2007-12-30 19:46:32 UTC
There are a bug when auto-formatting nested if statements, which changes the semantics of the program. The auto-
formatting tool changes the following code

if ( ... ) {
  if ( ... )
    command
}
else
  command 

to

if ( ... )
  if ( ... )
    command
else
  command

which are not semantically equal to the first one.
Comment 1 Jan Lahoda 2007-12-30 20:17:29 UTC
Already reported and fixed as issue #123258. Thanks for the report.

*** This issue has been marked as a duplicate of 123258 ***