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
Unfortunately, this happens whenever actual implements both Comparable and another interface (e.g., Temporal), and AssertJ offers separate assertThat methods for both Comparable and the interface instances. In such cases, the compiler cannot identify the proper assertThat candidate.
A way forward could be reverting the assertThat(Temporal) introduced with 46630d7 and introducing assertThatTemporal to satisfy @xenoterracide's request at #3404, similar to what we did in 17a5216.
scordio
changed the title
Ambiguous method call: Year and Temporal
Ambiguous assertThat method call for Temporal instances implementing ComparableMay 28, 2024
scordio
changed the title
Ambiguous assertThat method call for Temporal instances implementing Comparable
Ambiguous assertThat method call for Temporal instance implementing ComparableMay 28, 2024
scordio
changed the title
Ambiguous assertThat method call for Temporal instance implementing Comparable
Ambiguous assertThat for Temporal instance implementing ComparableMay 28, 2024
Describe the bug
The upgrade to
3.26.0
results in a compilation error when invokingassertThat()
with an argument of typejava.time.Year
.Test case reproducing the bug
The text was updated successfully, but these errors were encountered: