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

Summary: AutoComment Tool caused loss of larger source code
Product: java Reporter: Adam Sotona <asotona>
Component: JavadocAssignee: Adam Sotona <asotona>
Status: CLOSED FIXED    
Severity: major    
Priority: P1    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.