Re: duplicated parameters in "create" methods

Martin Matula <[email protected]> Tue, 21 Oct 2003 20:14:04 +0200
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Message-ID <[email protected]>
It seems that your metamodel does not conform to MOF 1.4 in a sense that 
it contains classes that "override" or "redefine" features from their 
superclasses. I suspect that several superclasses of the 
InstanceSpecification define attribute named "name". In MOF there is a 
constraint saying that names of all elements contained transitively via 
inheritance in a given element have to be unique - i.e. features 
overriding, overloading and hiding is not supported.
Martin

Bin Fu wrote:

> Hi, 
> 
> In the generated JMI interfaces, I found that most of interfaces with
> name ending of "Class" have parameter duplications in their "create" methods
> e.g. in "InstanceSpecificationClass.java",
> …
> public InstanceSpecification
> createInstanceSpecification(java.util.Collection name, java.util.Collection
> visibility, java.util.Collection name,
> java.util.Collection name, java.util.Collection name, java.util.Collection
> visibility,
> java.util.Collection visibility);
> …
> 
> What could be the reason for it? There is no attribute duplication in the
> xmi source file. 
> 
> Thanks a lot!
> 
> Fu, Bin
>