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

Summary: [60cat] JavaDoc hint removes too much
Product: java Reporter: tboerkel <tboerkel>
Component: JavadocAssignee: Jan Pokorsky <jpokorsky>
Status: RESOLVED FIXED    
Severity: blocker CC: hmichel, misterm, rost
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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