jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kennedy <da...@us.ibm.com>
Subject Conflicting propertyDefinitions within a nodeType
Date Wed, 03 May 2006 21:50:00 GMT
I have 2 nodeType definitions where one inherits from the other.  Both 
have a definition for a property having the same name.  In this particular 
case they happened to be the same (have the same attribute values).  On 
registration of the nodeType, I get a NodeTypeConflictException: 
"ambiguous property definition". Since the inheritance model of nodeType 
definition is left up to the implementation, what is jackrabbit's model? 
Why wouldn't the subtype definition override the supertype's definition?

FWIW, this is where it is failing in EffectiveNodeType:

                                if (pd.getRequiredType() == 
epd.getRequiredType()
                                        && pd.isMultiple() == 
epd.isMultiple()) {
                                    // conflict
                                    String msg = "The property definition 
for '"
                                            + name + "' in node type '"
                                            + def.getDeclaringNodeType()
                                            + "' conflicts with node type 
'"
                                            + 
existingDef.getDeclaringNodeType()
                                            + "': ambiguous property 
definition";

David
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message