[mdr-users] RE : [mdr-users] Clustering packages

"Olivier RICHAUD" <[email protected]> Wed, 11 Jan 2006 12:32:46 +0100
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <000901c616a2$bef6dbc0$0a64a8c0@lauris>
No no, there are all independent !!!!



-----Message d'origine-----
De : Martin Matula [mailto:[email protected]] 
Envoyé : mercredi 11 janvier 2006 11:29
À : [email protected]
Objet : Re: [mdr-users] Clustering packages


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.
>