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 46211 - Changing javadoc for class through properties makes the file uncompilable (+dataloss)
Summary: Changing javadoc for class through properties makes the file uncompilable (+d...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-15 15:46 UTC by psuk
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 psuk 2004-07-15 15:46:16 UTC
[040715 dev from CVS]
1. Open NB Project OpenAPI
2. Browse in Project Explorer Window and find
   org.openide
   \- WizardDescriptor.java
    \- WizardDescriptor.
   (don't open it in the editor yet!!!)
3. Open Properites in this java node
   (right click->Properties)
4. Open Javadoc editor by clicking on [...] button
in Javadoc Comment property
5. Press OK (don't change anything)
6. Close Properties
7. Open the file in the editor
-> you will get:
/** 
Implements a basic "wizard" GUI system.
A list of <em>wizard panels</em> may be specified
and these
may be traversed at the proper times using the
"Previous"
and "Next" buttons (or "Finish" on the last one).
@see DialogDisplayer#createDialog
@see <a
href="doc-files/wizard-guidebook.html">Wizard
Guidebook
(describes the set of properties controlling the
display of wizard panels)</a>
 *//

There are 2 issues:
a) it removed all trailing " *" on each line
b) the end of comments has 2 slashes, which makes
the file uncompilable

Try to undo it and you'll see how many steps needs
to be undone.

If you do it on a file that's opened already, it
still removes all trailing lines, but it doesn't
add second slash.

It's reproducible on any file.
Comment 1 Pavel Flaska 2004-07-16 12:57:44 UTC
It is probably caused by fix of #43855. It is not reproducible on
Linux machine, seems the problem is only on Windows machines. JavaDoc
tests from javacore module doesn't pass on Windows boxes too.
Comment 2 Jan Becicka 2004-07-16 13:12:10 UTC
Fixed.
Checking in JavaDocParser.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/JavaDocParser.java,v
 <--  JavaDocParser.java
new revision: 1.6; previous revision: 1.5
done
Comment 3 Jiri Prox 2005-07-11 14:23:55 UTC
Please, can you verify this issue, thanks.
Comment 4 Quality Engineering 2007-09-20 12:05:11 UTC
Reorganization of java component