Re: RefAssociation.refAllLinks() really live in MDR ?

Tomas Zezula <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Message-ID <[email protected]>
Hi Holger,
    you are right the returned collection should be live immutable 
collection, but it is
not-live immutable Collection. This is a bug in the MDR implementation.

Tomas

Holger Krug wrote:

>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.
>
>Am I wrong ? If not would it be possible to state briefly what still
>has to be done to reach full JMI compliance ? It would not be
>impossible to invest some manpower from our side, if necessary.
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.