Re: Instantiating packages from other repositories

Martin Matula <[email protected]> Fri, 04 Oct 2002 11:48:17 +0200
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Message-ID <[email protected]>
Hi Brian,

Brian Smith wrote:
> Consider a MDR installation with two repositories "A" and "B". Currently 
> it isn't possible to instantiate a package from repository A to create 
> an extent in repository B. Is this restriction by design? Or, in other 
> words, must the model, its metamodel, its meta-metamodel, etc., etc. all 
> be in the same repository? Or, should it be considered a bug if this 
> cross-repository instantiation does not work?

This is by design.

> If this is the way it is supposed to work, then perhaps this condition 
> should be documented. We could check for this condition in 
> createExtent() and throw a CreationFailedException if this rule is 
> violated. Currently, a non-obvious NullPointerException is thrown from 
> inside MDRClassLoader, and maybe other places.

You are right - this should be documented and correctly handled. File a 
new issue or feel free to correct it directly if you want :).
Martin