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 124353 - [60cat] JavaDoc hint removes too much
Summary: [60cat] JavaDoc hint removes too much
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
: 125172 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-21 07:32 UTC by tboerkel
Modified: 2008-01-19 11:02 UTC (History)
3 users (show)

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 tboerkel 2007-12-21 07:32:11 UTC
[ BUILD # : 200711261600 ]
[ JDK VERSION : 1.6.0_03 ]

Example:

  /**
   * Lädt ein XML-Document aus einer Datei.
   * @param fileName Dateiname
   * @return Document
   * @throws javax.xml.parsers.ParserConfigurationException bei einem
ParserConfiguration-Fehler
   * @throws org.xml.sax.SAXException bei einem SAX-Fehler
   * @throws java.io.IOException bei einem IO-Fehler
   */
  public static Document loadDocument(File file) throws
ParserConfigurationException, SAXException, IOException {
    DocumentBuilder documentBuilder;
    Document doc;

    documentBuilder = getDocumentBuilder();
    doc = documentBuilder.parse(file);
    return (doc);
  } // loadDocument


Now let the JavaDoc hint remove the "@param fileName" line. But it
also removes the "@return Document" line!
Comment 1 misterm 2007-12-21 11:41:47 UTC
This bug render the hint pretty much useless unless it is the last item. Please fix it.
Comment 2 Jiri Prox 2008-01-14 10:26:26 UTC
*** Issue 125172 has been marked as a duplicate of this issue. ***
Comment 3 Jan Pokorsky 2008-01-19 11:02:32 UTC
fixed in

/cvs/javadoc/src/org/netbeans/modules/javadoc/hints/RemoveTagFix.java,v  <--  RemoveTagFix.java
new revision: 1.5; previous revision: 1.4
/cvs/javadoc/test/unit/src/org/netbeans/modules/javadoc/hints/RemoveTagFixTest.java,v  <--  RemoveTagFixTest.java
new revision: 1.2; previous revision: 1.1