Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-3018

The same enum values as task inputs are considered different

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0-rc-1

      Description

      New Gradle Forums Topic: https://discuss.gradle.org/t/two-different-instances-of-the-same-enum-value-for-previous-and-current-input-property-when-using-the-gradle-daemon/1162

      The equals() implementation for Enum values is based on object identity. This is problematic when the values of two different instances of the same enum class are tested for equality. This can happen in Gradle when using enum classes from a 3rd party (i.e. non core) and the daemon because of the task artifact cache being held in memory across builds.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mbarnathan Michael Barnathan (Inactive)
              Reporter:
              forums Gradle Forums
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: