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 18720 - Lots of bean instances being created
Summary: Lots of bean instances being created
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: -FFJ-
Hardware: PC Other
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-17 10:55 UTC by issues@www
Modified: 2005-03-09 04:28 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 issues@www 2001-12-17 10:55:57 UTC
Description: 
The number of bean instances created in design mode seems to be more than
required.
As part of investigations into 4519199, it was noticed that more otject
instances than expected are created.
Support I have 2 beans A and B and I have an open project with a JFrame.
If I drop an A into the frame I get 2 instances of A created.
If I then drop a B into the frame, I get 2 instances of B and 1 of A created.
If I then drop another A into the frame, I get 3 instances of A and 1 of B
created.
If I then drop another B into the frame, I get 3 instances of B and 2 of A
created.
My conclusion from this is that I get once instance of my new object created,
and then each of all of the objects is 'recreated'.
This certainly seems to be undesirable, and I suspect would impact the
performance of creating a large-scale GUI.

Work Around: 
None

Evaluation: 
Moving to Issuezilla

A comment.
Comment 1 Jan Becicka 2001-12-18 14:18:08 UTC
Moving to form
Comment 2 Tomas Pavek 2002-01-02 18:08:30 UTC
In FFJ 3.0 (NetBeans 3.2), the whole form "view" in the designer 
window is recreated with each change - so all instances are created 
again and again after any modification of the form. It is a bit 
inefficient, but it has no serious impact on performance, even for 
large forms (the code generation is much bigger problem here - see 
issue 11441).

The designer update behaviour was improved in NetBeans 3.3, so no 
unnecessary instances are created now...
Comment 3 Quality Engineering 2003-06-30 18:21:15 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2003-06-30 18:29:32 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.