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 11937 - When second source is opened in Source Editor IDE hangs in MDI.
Summary: When second source is opened in Source Editor IDE hangs in MDI.
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: mslama
URL:
Keywords:
: 11907 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-05-04 10:50 UTC by mslama
Modified: 2008-12-23 13:47 UTC (History)
3 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 mslama 2001-05-04 10:50:17 UTC
Focus is cycled among componenta in Explorer in MDI. Observed with
JDK 1.4.0-beta-b63 on Linux RH 6.2 (2.4.1). Dafe observed the same behaviour on
W2000. It makes IDE unusable. I will investigate if it is caused by
Netbeans or JDK 1.4.0.
Comment 1 mslama 2001-05-04 13:49:20 UTC
I investigated it further and it is caused by infinite loop when method
JInternalFrame.setSelected is called from TopComponent.requestFocus. I filed
bug4454403 against JDK 1.4.0-beta-b63 to Bugtraq.

It happens only on Linux in MDI mode. (At least so far we did not see it on
Solaris and Win2000.
Comment 2 Jan Chalupa 2001-05-05 20:37:12 UTC
Target milestone -> 3.3
Comment 3 mslama 2001-05-07 16:10:16 UTC
Also some other actions can be severely limited by this bug in MDI mode. Last I
saw on Linux and Solaris is "Dock into new Split frame". It does not happen
always but often. It can hang IDE or even system or it can notify Stack overflow
exception. So it is possible that some new bugs will be duplicate of this issue.
Comment 4 mslama 2001-05-11 11:13:54 UTC
The root cause is focus problem in JDK. It is filed in bugtraq as bug #4453933
and it is accepted by JDK team as bug in JDK. It should be solved in beta2.
Comment 5 mslama 2001-05-28 17:43:29 UTC
Added workaround to merlin branch.
Change in org.openide.windows.TopComponent method requestFocus() commented call
of super.requestFocus().

CVS rev.1.57.6.1
Comment 6 mslama 2001-05-28 17:43:56 UTC
*** Issue 11907 has been marked as a duplicate of this issue. ***
Comment 7 mslama 2001-05-30 16:27:10 UTC
Set as FIXED. It will closed as it will be fixed in JDK 1.4.0.
Comment 8 Jan Zajicek 2001-05-31 08:21:37 UTC
added keyword to remind verifying after fixing in jdk1.4
Comment 9 mslama 2001-07-11 13:42:10 UTC
*** Issue 13213 has been marked as a duplicate of this issue. ***
Comment 10 mslama 2001-07-16 13:00:37 UTC
Now focus problem in JDK 1.4.0 b70 is fixed. However due to change in
behaviour of JComponent.setRequestFocusEnabled when there is no
subcomponent in TopComponent it gets into infinite cycle in MDI when
TopComponent is selected by mouse click. (It is caused by call of
JInternalFrame.restoreSubcomponentFocus.) In JDK 1.4.0 there is method
Component.setFocusable but we cannot use it because we need to keep
source code compatibility with JDK 1.3.1.

Solution is to stop recursion in TopComponent.requestFocus.
Comment 11 mslama 2001-07-16 13:37:13 UTC
Fixed in org.openide.windows.TopComponent.requestFocus() - recursion
stopped using flag.
Comment 12 Jan Zajicek 2001-07-17 11:56:56 UTC
verified - rev 1.59 (#20010717)
Comment 13 Jan Zajicek 2001-07-17 11:58:14 UTC
Roberte, can you verify it on 1.4 and winsys, thanks.
Comment 14 Quality Engineering 2003-07-01 16:46:07 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.