Skip to content

Ambiguous assertThat for Temporal instance implementing Comparable #3491

@armandino

Description

@armandino

Describe the bug

The upgrade to 3.26.0 results in a compilation error when invoking assertThat() with an argument of type java.time.Year.

  • assertj core version: 3.26.0
  • java version: 17

Test case reproducing the bug

@Test
void example() {
    Year year = Year.now();
    assertThat(year).isNotNull();
}

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions