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 7677 - Auto comment acting funny
Summary: Auto comment acting funny
Status: CLOSED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P4 minor (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-15 16:33 UTC by mancarella
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 mancarella 2000-09-15 16:33:59 UTC
The auto comment option sometimes places comments in the wrong place,
wastes pieces of code and misplaces indentation.
Comment 1 Svata Dedic 2000-09-18 16:32:59 UTC
The bug report does not contain enough information. Please, specify at least
- what build (codeline, build number) are you using [attachment of the IDE's
logfile is prefered]
- is the behaviour deterministic or occasional ?
- how exactly does the AutoComment "waste pieces of code" ?
- example or description of misplaced JavaDoc comment ?
- example of a source the AutoComment is failing on or list of steps that
eventually produce the bug

Indentation bugs are generally in the Editor component - this particular one
(bad indentation of JavaDoc comments) was reported a while ago. Both me and
maintainer of the Editor module are working on a fix.

I'm changing Product to "java" since the actual generation and text manipulation
code is implemented in the Java module. I'm also changing the Component to
"code" because the bug is not in fact in the tool's or module's User Interface
but rather in the code that locates appropriate place and inserts the comment's
content.
Comment 2 Svata Dedic 2000-09-18 16:35:59 UTC
*** Bug 7678 has been marked as a duplicate of this bug. ***
Comment 3 mancarella 2000-09-18 16:59:59 UTC
- Extract of IDE log follows:

>System Info:
  Product Version          = Forte for Java, CE v. 1.0 (Build 501)
  IDE Versioning           = IDE/1 spec=1.0.3 impl=Build 501
  Operating System         = Windows NT Version 4.0 Running on x86
  Java Version             = 1.2.2
  Java VM Version          = Classic VM 1.2.2
  Java Vendor              = Sun Microsystems Inc.
  Java Vendor URL          = http://java.sun.com/
  Java Home                = C:\JDK12~1.2\jre
  Java Class Version       = 46.0
  JIT                      = Symantec, version 3.10.107(x) for JDK 1.2
  Home Dir                 = C:\WINNT\Profiles\admin
  Current Directory        = c:\forte4j
  Forte for Java Home      = C:\forte4j
  Forte for Java User Home = C:\forte4j
  System Directory         = C:\forte4j\system
  CLASSPATH                =
C:\forte4j\lib;C:\forte4j\lib\developer.jar;C:\forte4j\lib\openide.jar;C:\forte4
j\lib\updater.jar;C:\forte4j\lib\ext\AbsoluteLayout.jar;C:\forte4j\lib\ext\javac
.jar;C:\forte4j\lib\ext\jh.jar;C:\forte4j\lib\ext\jini-core.jar;C:\forte4j\lib\e
xt\jini-ext.jar;C:\forte4j\lib\ext\regexp.jar;C:\forte4j\lib\ext\servlet.jar;C:\
forte4j\lib\ext\sun-util.jar;C:\forte4j\lib\ext\xml.jar;C:\JDK12~1.2\lib\dt.jar;
C:\JDK12~1.2\lib\tools.jar;.;C:\MyClasses;
-------------------------------------------------------------------------------
[INFO] Loaded modules: com.netbeans.developer.modules.httpserver/1 (1.0/502);
com.netbeans.developer.modules.icebrowser/1 (1.0/502);
com.netbeans.developer.modules.loaders.clazz/1 (1.0/502);
com.netbeans.developer.modules.loaders.html/1 (1.0/502);
com.netbeans.developer.modules.loaders.image/1 (1.0/502);
com.netbeans.developer.modules.loaders.txt/1 (1.0/502);
com.netbeans.developer.modules.usersguide/1 (1.0/unspec);
com.netbeans.developer.modules.vcs.cmdline/1 (1.1/808); org.openidex.util/1
(1.1/808); com.netbeans.developer.modules.autoupdate/1 (1.0/502);
com.netbeans.developer.modules.browser/1 (1.0/502);
com.netbeans.developer.modules.debugger.core/1 (1.1.0/502);
com.netbeans.developer.modules.applet/1 (1.0/502);
com.netbeans.developer.modules.debugger.debug/1 (1.0/502);
com.netbeans.developer.modules.loaders.java/1 (1.0/502);
com.netbeans.developer.modules.beans/1 (1.0/502);
com.netbeans.developer.modules.javadoc/1 (1.0/502);
com.netbeans.developer.modules.loaders.form/1 (1.1/808);
com.netbeans.developer.modules.projectx/1 (1.0/502);
com.netbeans.developer.modules.text/1 (1.2/817);
com.netbeans.developer.modules.utilities/1 (1.1/808);
com.netbeans.enterprise.modules.servlet/1 (1.1.5/808)

- AFAIK the behaviour is occasional. I'm trying to reproduce it at will, but
without success.

- For "wastes pieces of code" I mean that the comment is sometimes placed in the
middle of the method code instead of at the beginning (breaking a line in two),
preventing the code from compiling.

- I'll add an example of misplaced JavaDoc comment as long as the problem shows
up again.

- The only indentation problem consists in the first line of code after the
method signature being placed at column 1 (while before was at column 9).
Comment 4 Svata Dedic 2000-09-18 17:34:59 UTC
Build 501 is rather an ancient one at present ;-) Please download either latest
Stable-X build from www.netbeans.org or some more recent f4j version from
www.sun.com. The most annoying bugs that corrupt the code were fixed in (I
think) all versions currently available for download; the indentation bug
survived however. For FAQ about stability and usability please check NetBeans'
or Sun's websites and the relevant mailing lists.
Comment 5 Quality Engineering 2003-07-01 13:12:13 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 6 Quality Engineering 2003-07-01 13:19:49 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.