[mdr-users] Clustering packages

"Olivier RICHAUD" <[email protected]> Wed, 4 Jan 2006 10:21:14 +0100
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <000601c61110$35eb4d80$0a64a8c0@lauris>
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.