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 129901 - Exception thrown when diff evoked
Summary: Exception thrown when diff evoked
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Miloslav Metelka
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2008-03-12 13:58 UTC by Petr Dvorak
Modified: 2008-09-17 12:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (4.00 KB, text/plain)
2008-03-12 14:01 UTC, Petr Dvorak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2008-03-12 13:58:05 UTC
Product Version: NetBeans IDE Dev (Build 200803111205)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.2 running on i386; MacRoman; en_US (nb)

1. Create a new project (Java Application)
2. Import the project into SVN repository (I use svn protocol)
3. Open the Main.java file
4. Insert some code in the main method
5. Update the comment right above the main class (...@author...)
6. Delete the very first comment in the Main.java ("/* To change this template... */)
7. Save Main.java
8. Invoke Versioning > Diff from the main menu
-> Exception is thrown
Comment 1 Petr Dvorak 2008-03-12 14:01:02 UTC
Created attachment 58233 [details]
stack trace
Comment 2 Petr Dvorak 2008-03-12 14:09:32 UTC
As I am getting the message quite regularly whenever the Diff window appears, the priority of this issue should be raised to P2. Diff is a commonly used tool 
when working with VCS.
Comment 3 Tomas Stupka 2008-03-12 14:56:00 UTC
could reproduce only on mac

however, p3 as the diff seems to work fine, it's just that the exception is thrown.

reassigning to editor for further evaluation

thanks
Comment 4 Jan Becicka 2008-03-26 13:16:34 UTC
Milo, please evaluate. Thanks
Comment 5 Vitezslav Stejskal 2008-03-26 14:38:16 UTC
The exception is harmless, in the worst case scenario some folds might be missing. Also, CustomFoldManager should stop
using old Syntax and start using lexer. I think I rewrote this a long time ago when experimenting with isolating Syntax
to a deprecated autoload module. The code should still be on some branch in CVS, so I'll try to dig it out and apply it
to the current codebase.
Comment 6 Miloslav Metelka 2008-03-26 15:13:44 UTC
I was able to reproduce in the recent dev builds. It's just enough to remove the initial comment in any versioned source
and invoke the diff tool.
Comment 7 Jiri Prox 2008-04-11 00:41:37 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 8 Vitezslav Stejskal 2008-06-26 14:26:56 UTC
It seems to be working fine in a dev build. Plus the CustomFoldManager has recently been updated to use lexer tokens and
the stacktrace no longer applies. Please reopen if this is still a problem.
Comment 9 Petr Dvorak 2008-09-17 12:53:56 UTC
Yes, it is very likely fixed. Verified.