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 242784 - [formatter] Inserts newline and asterisk inside a Javadoc tag
Summary: [formatter] Inserts newline and asterisk inside a Javadoc tag
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7 x64
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-11 10:38 UTC by Zom-B
Modified: 2014-03-11 10:56 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 Zom-B 2014-03-11 10:38:42 UTC
When formatting the following snippet, it inserts a newline and optionally a, asterisk inside the first code tag:

Before:
    /**
     * Does the same as:
     * <p/>
     * <code> clear();<br/>
     * removeAllSelections();<br/>
     * setDefaults();</code>
     */
    public static void reset() {
        clear();
        removeAllSelections();
        setDefaults();
    }

After:
    /**
     * Does the same as:
     * <p/>
     * <
     * code> clear();<br/>
     * removeAllSelections();<br/>
     * setDefaults();</code>
     */
    public static void reset() {
        clear();
        removeAllSelections();
        setDefaults();
    }

How this Javadoc appears in the Javadoc panel:

public static void reset()

Does the same as:

code> clear();
removeAllSelections();
setDefaults();

I have Options->Editor->Formatting->Java->Comments turned on, and I tried turning all sub-options off. Nothing prevents the newline from being added short of turning comment formatting off altogether.
Comment 1 Jiri Prox 2014-03-11 10:56:02 UTC
I can reproduce this behavior in 7.3, but in 8.0 it is already fixed