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

[PATCH] ClassDescriptor.hasIdField uses faulty logic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.5
    • jackrabbit-ocm
    • None

    Description

      hasIdField tries to compare a FieldDescriptor to an empty string, which doesn't make sense, here:

      public boolean hasIdField()

      { return (this.idFieldDescriptor != null && ! this.idFieldDescriptor.equals("")); }

      i'm assuming it should be

      return (this.idFieldDescriptor != null && this.idFieldDescriptor.isId());

      patch does this

      Attachments

        1. classdescriptor_isid.patch
          0.7 kB
          David Brosius

        Activity

          People

            clombart Christophe Lombart
            dbrosius David Brosius
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: