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 25498 - Result of RefAssociation.refAllLinks() is not a live Collection.
Summary: Result of RefAssociation.refAllLinks() is not a live Collection.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-10 14:36 UTC by Daniel Prusa
Modified: 2002-08-08 14:39 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 Daniel Prusa 2002-07-10 14:36:50 UTC
Bug reported by Holger Krug:

In browsing MDR sources I wonder if the return value of
RefAssociation.refAllLinks() is really live (i.e. reflects 
any changes
to the source) as required by the JMI spec, sec. 5.2.3 
RefAssociation,
p.85.

If I correctly understand the code in AssociationGenerator 
(lines 94+120),
refAllLinks() in generated (non-derived) association 
classes calls
AssociationHandler._handleAllLinks(), which calls
StorableAssociation.getAllLinks() and wraps the results in 
an
IndexSetWrapper.

Unfortunately StorableAssociation.getAllLinks() does not 
return a live
collection, but an instance of java.util.ArrayList.
Comment 1 Martin Matula 2002-08-08 14:39:48 UTC
Fixed by Holger Krug.