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.
Created attachment 156793 [details] Left before. Right after formatting. Scenario: see atttachment When got additional "'" in constant list, Formatting will delete one of the "const" keywords AND rest of the syntax-broken constant (see attachment). Note: constant names should have underscore.
Unfortunately, you are formatting code with syntax errors. It means that the result is unpredictable as formatting is based on AST. Sorry for inconveniences. Thanks for reporting.