jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-312) CompactNodeTypeDefReader adds nt:base as declared supertype even if already extending
Date Wed, 01 Feb 2006 13:55:36 GMT
CompactNodeTypeDefReader adds nt:base as declared supertype even if already extending
-------------------------------------------------------------------------------------

         Key: JCR-312
         URL: http://issues.apache.org/jira/browse/JCR-312
     Project: Jackrabbit
        Type: Bug
 Environment: nt-ns-util r374055
    Reporter: Tobias Bocanegra


(reported to the list by michael singer)

I wrote a simple program which uses the nt-ns-util contribution to
register custom node types written in CND language.

I defined the following (very simple) custom node types:

<test = 'http://foo.bar/test'>
[test:firstnodetype]
+ test:secondnodetype mandatory

<test = 'http://foo.bar/test'>
[test:secondnodetype] > test:firstnodetype
+ test:thirdnodetype

<test = 'http://foo.bar/test'>
[test:thirdnodetype] > test:secondnodetype
- test:catalog (string)  < 'URI', 'URN', 'DOI', 'ISBN', 'ISSN'
- test:entry (string) m


In the resulting custom_nodetypes.xml each of the custom nodes has a
supertype of "nt:base" but I didn't explicitely define a supertype of
"nt:base" for [test:secondnodetype] and [test:thirdnodetype].

I think this behavior is wrong since the method getDeclaredSupertypes()
of class NodeType always returns "nt:base" plus the explicitely declared
Supertype (which it e.g. does not for "nt:folder").


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message