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 5731 - Java parser regenerates whole method header and body when only Javadoc comment changes.
Summary: Java parser regenerates whole method header and body when only Javadoc commen...
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-02-12 07:00 UTC by Jesse Glick
Modified: 2007-09-26 09:14 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 Jesse Glick 2000-02-12 07:00:48 UTC
E.g. use the Javadoc Wizard or something else which accesses an Element, changes its Javadoc comment only, and saves the file. If you start with a method such as:

public /* or private? */ void foo () {
  if (condition)
    throw new Exception ();
}

you will end up with:

/** Foo.
*/
public void foo() {
  if (condition)
  throw new Exception ();
}

Note that whitespace in the method header is normalized, body is reindented, etc. Regardless of whether these things are done correctly or not, changing the Javadoc should simply not affect anything o
utside the Javadoc at all. Otherwise users will not trust the Javadoc Wizard and related tools.
Comment 1 Marek Grummich 2000-07-25 09:33:59 UTC
Priority is changed to P4 (normal).
Comment 2 Quality Engineering 2003-07-02 17:20:33 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.