Replies: 4 comments 1 reply
-
|
Thanks for the heads up, @erizzo! I personally use IntelliJ, and I see the same
Still, IntelliJ compiles that correctly... and I'm wondering how everything is fine under Maven 🤔 |
Beta Was this translation helpful? Give feedback.
-
|
I'm able to get past the IDE errors in AbstractIterableAssert by changing this: if (actual instanceof List<? extends ELEMENT> list) {
elementAtIndex = list.get(index);
} else {to this: if (actual instanceof List list) {
elementAtIndex = (ELEMENT) list.get(index);
} else {That leaves warnings in both IntelliJ and Eclipse, but at least not errors. |
Beta Was this translation helpful? Give feedback.
-
|
Similarly in AbstractObjectAssert, changing this: return super.extracting(propertyOrField, this::newObjectAssert);to this: AssertFactory<Object, AbstractObjectAssert<?, Object>> assertFactory = this::newObjectAssert;
return super.extracting(propertyOrField, assertFactory);makes Eclipse happy. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the additional details, @erizzo! I have converted this discussion into issue #3996 and will follow up on the investigation there. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I just cloned the repo and imported into Eclipse, set the project to use Java 25.
There are compilation errors in 2 classes,
AbstractObjectAssertandAbstractIterableAssert, all centered around typing errors.In
AbstractObjectAssertthe same error shows up on 4 different lines. Here's one example, line 467In
AbstractIterableAssert, there are 2 instances of a different error. One example, line 3011:Only the
AbstractIterableAsserterrors show up in IntelliJ.Has anyone else run into these compilation errors?
Beta Was this translation helpful? Give feedback.
All reactions