Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-433

NodeTypeRegistry could auto-subtype from nt:base

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9, 1.0, 1.0.1
    • Fix Version/s: 1.1
    • Component/s: nodetype
    • Labels:
      None

      Description

      when tying to register a (primary) nodetype that does not extend from nt:base the following error is
      thrown:

      "all primary node types except nt:base itself must be (directly or indirectly) derived from nt:base"

      since the registry is able to detect this error, it would be easy to auto-subtype all nodetypes from nt:base. imo it's pointless to explzitely add the nt:base to every supperclass set. as an analogy, you don't need to 'extend from java.lang.Object' explicitely - the compiler does that automatically for your.

      1. jackrabbit-ntd-r41844.patch
        3 kB
        Jukka Zitting
      2. jackrabbit-ntr.r41878.patch
        2 kB
        Jukka Zitting
      3. jackrabbit-ntd.r418787.patch
        10 kB
        Jukka Zitting

        Activity

          People

          • Assignee:
            Jukka Zitting
            Reporter:
            Tobias Bocanegra
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development