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 114677 - Folding manager throws exception for invalid source contents
Summary: Folding manager throws exception for invalid source contents
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-04 18:46 UTC by Torbjorn Norbye
Modified: 2007-09-07 10:28 UTC (History)
2 users (show)

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 Torbjorn Norbye 2007-09-04 18:46:24 UTC
If you enter a method outside of a class, and pause while the source is in an incorrect state, you get exceptions.

To reproduce, create a blank file, and type

def t

and pause for a second.
Comment 1 Torbjorn Norbye 2007-09-04 18:48:19 UTC
Fixed in the trunk - but I believe this should be fixed in the beta1 branch as well:

IDE:-------------------------------------------------
IDE: [9/4/07 10:47 AM] Committing started
Checking in GsfFoldManager.java;
/cvs/ruby/gsf/src/org/netbeans/modules/retouche/editor/fold/GsfFoldManager.java,v  <--  GsfFoldManager.java
new revision: 1.3; previous revision: 1.2
done
IDE: [9/4/07 10:47 AM] Committing finished
Comment 2 Martin Krauskopf 2007-09-05 07:02:52 UTC
I do not understand the editor code. But looks safely. So if you have not better reviewer take it as reviewed :)
(PS: just change the target to beta1, after committed to the beta1 branch; it's fixed in trunk)
Comment 3 Torbjorn Norbye 2007-09-05 16:45:20 UTC
Thanks for the review.

Fixed in release60_beta1:

Checking in GsfFoldManager.java;
/cvs/ruby/gsf/src/org/netbeans/modules/retouche/editor/fold/GsfFoldManager.java,v  <--  GsfFoldManager.java
new revision: 1.2.2.1; previous revision: 1.2
done
Comment 4 Jiri Skrivanek 2007-09-07 10:28:40 UTC
Verified in NB 6.0 Beta 1 (Build 200709070000).