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 20927 - Eager loading of Storables
Summary: Eager loading of Storables
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-27 08:54 UTC by Svata Dedic
Modified: 2002-07-19 15:23 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2002-02-27 08:54:27 UTC
In case of toArray(), Storable* delegates are loaded from the database/populated
eagerly, during Handler construction. Since a Handler keeps only a
(soft)reference to the storable, it's not unusual that the Storable is dropped
in the meantime, which introduces another deserialization process.

I suggest to change the implementation to either of the following:
1. allow construction of Handler without loading the storable - to avoid eager
loading
2. keep the Storable in memory for Handler's lifetime - to avoid multiple loads
of the Storable referencable from MDR clients.
Comment 1 Martin Matula 2002-02-27 12:44:33 UTC
I have changed the implementation of handlers to keep a "hard"
reference on the storable.