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 6131 - AutoComment Tool caused loss of larger source code
Summary: AutoComment Tool caused loss of larger source code
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 3.x
Hardware: All All
: P1 major (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-04-06 00:24 UTC by Adam Sotona
Modified: 2003-10-29 13:06 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 Adam Sotona 2000-04-06 00:24:33 UTC
when I loaded and compiled larger file (>4500 lines of code with comments) and tried to add new comment with Auto Comment Tool, it caused loss of this source file (only 20 lines remained)


important is, that in one comment I typed    */
some times it only throws org.openide.src.SourceException

[Vlada N.]
I`ve tried following steps maybe 50 times - twice with the same result (at beginning 59445 lines of source code, at the end 103 containing only comment):
1. open file in Explorer
2. place cursor at beginning
3. open AutoComment
4. EditComment
5. New
6. select @see
7. to Tag write something containing */ sekvence (I used asdf*/asdf
8. done
-then when you close the file without saving it and reload it to the Editor by double-clicking in Explorer, file is still marked as broken source -  only posiible way is Remove and then Add Filesystem
 (I`ve tried RefreshFolder, but it doesn`t help)

Second possible result is Exception thrown - output is in the exceptions.txt file in attachments.

[Svata] I think this is now fixed by more proper synchronization between the parser and the document.
Comment 1 Quality Engineering 2003-07-02 17:17:07 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.