Re: [mdr-users] Clustering packages

Martin Matula <[email protected]> Wed, 11 Jan 2006 11:29:14 +0100
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
Hi Olivier,
doesn't one of the passed packages cluster the other one?
Martin

Olivier RICHAUD wrote:
> Hi all and happy new year,
> 
> I'm running into troubles with clustered packages during the creation of
> a new extent.This worked fine with one clustered package but as soon as
> I try to pass two clustered packages, it crashes. As far I can see, the
> passed packages are strictly different from my point of view. They are
> loaded from 2 different XMI / MOF files, and contain different package
> names. However I get a creation exception saying  "The provided list of
> existing package instances contains duplicities". 
> 
> I traced this down to the NBMDRepositoryImpl.collectPackageInstances
> method I don't understand the way the check for duplicities is
> performed. To check lwhether a package is already knwon, it relies on a
> call to :
> 	
> (BaseObjectHandler)pkg.refMetaObject())._getDelegate().getMofId()
> which always returns the same, although packages are different.
> 
> Thanks for your help.
> 
> Regards.
> 
> Olivier.
>