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 37129 - WM.findTopComponentID doesn't return same ID instance for the same TopComponent
Summary: WM.findTopComponentID doesn't return same ID instance for the same TopComponent
Status: VERIFIED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-10 17:32 UTC by Peter Zavadsky
Modified: 2008-12-22 18:49 UTC (History)
0 users

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 Peter Zavadsky 2003-11-10 17:32:50 UTC
There happens (for Welcome component) the method
findTopComponentID(tc) on WindowManager, doesn't
return same ID instance, it returned instances of
"Welcome" string, but the == comparison failed,
what led to heavy bug in model.... I think for the
same TopComponent instance has to return the same
ID instance.
Comment 1 mslama 2003-11-11 07:50:16 UTC
There is no info that findTopComponentID should return the same String
instance as returned by loadWindowSystem(). Simply use equals() to
compare TopComponent IDs.
Comment 2 Marian Mirilovic 2004-02-27 13:58:53 UTC
verified