Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.2
    • Fix Version/s: 0.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      all

      Description

      Is it really correct to compare references and not values in following places? Note that this are mostly either String or Long or Integer.
      I'm sure there are more. I guess that all these kinds of 'equals' should not compare reference but value.

      e.g. JCRHeader.java, compares references instead values.
      ...
      private String fieldName;
      private String value;

      public boolean equals(Object obj)

      { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; final JCRHeader other = (JCRHeader) obj; if (getValue() != other.getValue() || getFieldName() != other.getFieldName()) return false; return true; }

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Norman Maurer
            Reporter:
            Felix Knecht
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development