Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1356

Add bypass option for classes to recursive and reflective EqualsBuilder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.8
    • lang.reflect.*
    • None

    Description

      String are now compared with internal data (hash and char[]). But sometimes hash value is not initialized, this is probably a cache for the hashcode. So the comparison fails even if the char[] content is the same.
      You should add the bypass for basic JRE classes (String, Datetime types, etc.)

      reported at https://github.com/apache/commons-lang/pull/202#issuecomment-333874925

      Attachments

        1. LANG-1356.patch
          7 kB
          yathos GmbH

        Activity

          People

            pascalschumacher Pascal Schumacher
            pascalschumacher Pascal Schumacher
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: