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.
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.
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.
Created attachment 12959 [details] Diff of fix
Created attachment 12960 [details] Binary patch; place to lib/patches
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
*** Issue 39003 has been marked as a duplicate of this issue. ***
verified