Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-433

NodeTypeRegistry could auto-subtype from nt:base

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9, 1.0, 1.0.1
    • 1.1
    • nodetype
    • 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.

      Attachments

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

        Activity

          People

            jukkaz Jukka Zitting
            tripod Tobias Bocanegra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: