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 18251 - Problem switching to form editor after commit
Summary: Problem switching to form editor after commit
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords:
: 17441 17935 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-12-01 15:25 UTC by doozer
Modified: 2008-12-23 09:16 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (217.91 KB, text/plain)
2001-12-01 15:27 UTC, doozer
Details
patch18251.jar (20.00 KB, application/octet-stream)
2001-12-04 12:23 UTC, mslama
Details

Note You need to log in before you can comment on or make changes to this bug.
Description doozer 2001-12-01 15:25:40 UTC
I have just strated trying out the beta 6 version of 3.3 and have found an 
rather annoying bug. I use a remote CVS database and include the $data$ and 
$revision$ tags at the top of each of my classes. When I do a commit of *any* 
class with these at the top I have to shut netbeans down and restart it because 
I can no longer get to the form editor panel.

Every time I try and switch to the the form editor panel I get and array index 
out of bounds exception. This happens on every commit.

Cheers
Comment 1 doozer 2001-12-01 15:27:01 UTC
Created attachment 3648 [details]
ide log file
Comment 2 Milos Kleint 2001-12-01 20:42:06 UTC
I don't think it's a javacvs issue. 

The problem is that since you've got the $date$ and $revision$ keyword
substitutions there, the file changes upon commit and it's reloaded.

reassigning to form module.
Comment 3 Tomas Pavek 2001-12-03 10:22:53 UTC
The exception looks like a window system problem...
Comment 4 _ ttran 2001-12-03 10:46:29 UTC
Dafe, this one is troublesome:


Sat Dec 01 15:16:06 GMT 2001:
java.lang.ArrayIndexOutOfBoundsException: <no message>
java.lang.ArrayIndexOutOfBoundsException
	at
org.netbeans.core.windows.frames.SplitContainerImpl.componentFocusGained(SplitContainerImpl.java:825)
	at
org.netbeans.core.windows.frames.DefaultContainerImpl.eventDispatched(DefaultContainerImpl.java:935)
	at
java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:1521)
	at
java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:1433)
	at
java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:1432)
	at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:1390)
	at java.awt.Component.dispatchEventImpl(Component.java:2507)
	at java.awt.Container.dispatchEventImpl(Container.java:1213)
	at java.awt.Component.dispatchEvent(Component.java:2497)
	at java.awt.LightweightDispatcher.processFocusEvent(Container.java:2167)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2130)
	at java.awt.Container.dispatchEventImpl(Container.java:1200)
	at java.awt.Window.dispatchEventImpl(Window.java:926)
	at java.awt.Component.dispatchEvent(Component.java:2497)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

Comment 5 David Simonek 2001-12-03 13:02:49 UTC
reassigned to Marek, has connection wiht his bugfix #16631, which
would need to be improved.

Comment 6 mslama 2001-12-04 10:24:27 UTC
Yes it is connected with fix of issue #16631. I keep reference on top
component requested by requestVisible(). Problem is when this top
component is removed from container before frame on which
requestVisible() was called (Form mode in this case) is activated. (It
is removed for example by Form Editor when its source is externally
modified by for example CVS. Actually Form Editor replaces instance of
FormDesigner by new instance.) So I had to add additional check if
requested top component is still present in container and if not I set
it to focused top component.

Fixed in branch release33, pending for branch release330.
Comment 7 mslama 2001-12-04 10:29:32 UTC
I add steps to reproduce this bug:
1. Open two forms in Form Editor.
2. Select Source Editor. Switch between tabs. It causes call of
requestVisible() on Form mode. You can see that tabs in Form are
switched too according to selected tab is SourceEditor.
3. Now externally modify source selected in Source Editor. It causes
replacing instance of FormDesigner in Form mode as soon as IDE detects
change.
4. Select Form mode. It causes ArrayOutOfBoundsException.
Comment 8 mslama 2001-12-04 12:23:10 UTC
Created attachment 3685 [details]
patch18251.jar
Comment 9 mslama 2001-12-04 12:24:09 UTC
Attached patch can be used for beta6 build.
Comment 10 mslama 2001-12-04 12:25:29 UTC
Please, Graham, check that it solves problem with beta6 build.
Comment 11 Jan Zajicek 2001-12-04 13:43:17 UTC
Patch verified.
Comment 12 David Simonek 2001-12-04 14:47:30 UTC
verified that it works ok in release33, on win2k.
Comment 13 _ ttran 2001-12-04 17:01:12 UTC
mslama already committed the fix into release330
Comment 14 Jan Zajicek 2001-12-05 09:21:22 UTC
marking as verified
Comment 15 doozer 2001-12-05 22:06:53 UTC
Just like to say thanks and that it works.
Cheers
Comment 16 mslama 2001-12-14 10:14:59 UTC
*** Issue 17441 has been marked as a duplicate of this issue. ***
Comment 17 mslama 2001-12-14 16:14:10 UTC
*** Issue 17935 has been marked as a duplicate of this issue. ***
Comment 18 Quality Engineering 2003-07-01 16:24:21 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.