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 177873 - [68cat] Add new option to preserve behaviour from NB 6.7
Summary: [68cat] Add new option to preserve behaviour from NB 6.7
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-30 13:24 UTC by misterm
Modified: 2010-05-07 16:43 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2009-11-30 13:24:53 UTC
Until bug # 151154 was fixed, NB used to break code after operators, which many prefer. The time it took for such issue to be submitted shows (in a way) that's how most people like/expect their code to be formatted. 

Anyway, given how bad this can break sources in versioning systems, there should be an option allowing the old rules to be applied for those who like it.
Comment 1 swpalmer 2009-11-30 19:42:44 UTC
[I haven't double checked yet, but assuming that the fix of bug #151154 wasn't implemented with an option to preserve the original behaviour, as this report implies...]

While I disagree with the submitter's logic suggesting that breaking after the operator was preferred by most (my informal polling suggests the opposite), when I filed bug #151154 I had assumed that support for breaking on either side of the operator would be added as a user selectable option.

Why must we file these "common sense" requests?  It should have been clear to the implementor of the fix for bug #151154 that the old formatting needed to be supported.
Comment 2 majiknet 2010-02-16 03:57:10 UTC
I add my vote to this. Our team has setup all our coding conventions and code-style statistics to check for modifiers at the end of the line, and now we are getting errors all over the shop since 6.8. I can understand that some / many people like to follow the sun conventions, however simply changing this behaviour from one release to another without an option to revert to the previous behaviour has done nothing but create hostility towards updating. I cannot argue for the virtues of updating to newer and arguably better versions on NB, if I keep finding that the basics are constantly shifting...
Comment 3 Dusan Balek 2010-05-07 16:43:43 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/9ed7c3a690ae