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 209951 - [72cat] Wrong code formatting
Summary: [72cat] Wrong code formatting
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2012-03-22 16:48 UTC by Michel Graciano
Modified: 2012-03-30 14:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (13.91 KB, application/zip)
2012-03-22 16:50 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2012-03-22 16:48:25 UTC
[ BUILD # : b571960c6029 ]
[ JDK VERSION : 1.7.3 ]

The 7.2 is now formatting the code in a strange way. I will attach a sample
project to reproduce the case.
Comment 1 Michel Graciano 2012-03-22 16:50:00 UTC
Created attachment 117098 [details]
Sample project

Just try to reformat class NewClass1. This happen just when line 8 is larger than 80 columns. Remove 2 'y' from line 8 and it does not happen anymore.
Comment 2 Jiri Prox 2012-03-23 07:30:14 UTC
reproducible
Comment 3 Michel Graciano 2012-03-23 17:33:18 UTC
Any chance to fix it for 7.2? It causes that reformat a class file could generate a huge number of unnecessary diffs (I am facing this a lot and it is annoying).
Comment 4 Dusan Balek 2012-03-26 14:16:09 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/be5f7056aa4b
Comment 5 Michel Graciano 2012-03-30 14:39:35 UTC
v. Build 20120330-674cde18fed1