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 38991 - InvalidArgumentException when closing Source Editor with more than one editor
Summary: InvalidArgumentException when closing Source Editor with more than one editor
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P1 blocker (vote)
Assignee: mslama
URL:
Keywords:
: 39003 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-19 15:18 UTC by mslama
Modified: 2008-12-23 10:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Diff of fix (816 bytes, patch)
2004-01-19 15:26 UTC, mslama
Details | Diff
Binary patch; place to lib/patches (31.62 KB, application/octet-stream)
2004-01-19 15:29 UTC, mslama
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mslama 2004-01-19 15:18:16 UTC
When source editor contains more than one editor
and it is closed by close button at UR corner
(window close button) IAE is thrown in Rainier
build  Build 040113.
Comment 1 mslama 2004-01-19 15:20:39 UTC
It was reported as issue #4977297 in Bugtraq.

Evaluation:
This bug was introduced by fix of IZ issue #32492. Problem is
duplicate call of addChangeListener/removeChangeListener in
SplitContainerImpl. This call was added to addTcIntoTab to avoid
activation of window when TC is added to container. But in such case
this call must be removed from attachComponents to make sure that
SplitContainerImpl is registered always only once to its tabbed  panes.

Fix: Remove duplicate call of addChangeListener/removeChangeListener
from SplitContainerImpl.attachComponents.

We tested fix here and we did not find any problem with it. It fixes
reported problem.
Comment 2 mslama 2004-01-19 15:26:46 UTC
Created attachment 12959 [details]
Diff of fix
Comment 3 mslama 2004-01-19 15:29:28 UTC
Created attachment 12960 [details]
Binary patch; place to lib/patches
Comment 4 mslama 2004-01-19 15:42:44 UTC
Fixed in release35R branch.

/cvs/core/src/org/netbeans/core/windows/frames/Attic/SplitContainerImpl.java,v
 <--  SplitContainerImpl.java
new revision: 1.104.30.3; previous revision: 1.104.30.2
Comment 5 Lukas Hasik 2004-01-20 10:49:00 UTC
*** Issue 39003 has been marked as a duplicate of this issue. ***
Comment 6 Marian Mirilovic 2004-03-12 11:02:05 UTC
verified