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 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.
Fixed by Holger Krug.