You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a task which uses a java record as a property type is executed with configuration cache enabled it fails with an error along the lines of
* What went wrong:
Could not load the value of field `__inputRecord__` of task `:taskUsingRecordAsInput` of type `com.github.erdi.gradle.configuration.cache.bug.TaskUsingRecordAsInput`.
> Can not set final java.lang.String field com.github.erdi.gradle.configuration.cache.bug.InputRecord.value to java.lang.String
Expected Behavior
Tasks using java records as property types can be used with configuration cache.
Current Behavior
If a task which uses a java record as a property type is executed with configuration cache enabled it fails with an error along the lines of
Expected Behavior
Tasks using java records as property types can be used with configuration cache.
Context (optional)
No response
Steps to Reproduce
A reproducer project can be found at https://github.com/erdi/gradle-record-input-configuration-cache-bug. After checking it out run
./gradlew :taskUsingRecordAsInput --configuration-cache
to reproduce. Note that running./gradlew :taskUsingRecordAsInput
succeeds.Gradle version
8.4
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: