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.
Reformat modified lines on save break javadoc formatting. Steps to reproduce: 1) enable Reformat modified lines on save 2) have method with javadoc /** * Gets the number of words in the library. * * @return the total number of plain/scrambled word pairs in the library */ 3) type something to javadoc 4) save the file -> javadoc formatting is broken /** * Gets the number of words in the library. Another sentence * * @return the total number of plain/scrambled word pairs in the library */ Product Version: NetBeans IDE 7.3 RC1 (Build 201301222100) Java: 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb) User directory: C:\Users\jprox\AppData\Roaming\NetBeans\7.3rc1 Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\7.3rc1
Reproducible Product Version: NetBeans IDE 7.3 (Build 201302132200) Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Unfortunately, I cannot reproduce the problem in the current dev build. Could you please attach your formatting options? Thanks.
(In reply to comment #2) > Unfortunately, I cannot reproduce the problem in the current dev build. Could > you please attach your formatting options? Thanks. Use the default settings for formatting blank lines and right margin set to 80. No need to save the file, just keep formatting it with Alt+Shift+F. It only happens in Javadoc with line that extends past right margin. Use attached code and keep formatting it with Alt+Shift+F and you will see the last line in the last 2 Javadocs split across 2 lines. Format again and they go back to one line. It keeps doing this each time you Format. Each time it merges back to one line a new "*" is added in the middle of the line. Product Version: NetBeans IDE Dev (Build 201304102301) Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Created attachment 133477 [details] test file
Created attachment 133478 [details] Format Settings Here is an export of all of the default Formatting settings.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/2c73d535d55e
Integrated into 'main-golden', will be available in build *201304172301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/2c73d535d55e User: Dusan Balek <dbalek@netbeans.org> Log: Issue #225221: Reformat on save breaks javadoc formatting - fixed.
v.