Closed thahnen closed 3 months ago
I changed the code to the following, and at least from running it like 100 times for now, it didn't appear again. I have little to no clue why it thought that we wanted to have an array as a return value instead of the List<...>
:confused:
List<IMavenProjectFacade> projects = projectManager.getProjects();
for (var mavenProjectFacade : projects) {
// ...
}
Running on Java 11 so I don't know if it is mistaken because of the call in the loop header or because of the usage of var
in there.
Maybe a compiler bug you migth want to report it here: https://github.com/eclipse-jdt/eclipse.jdt.core
Ah damnit, I found the error. He is me 🤔
Compiled against a newer Version of m2e and ran with an older one. Or Vice versa.
The signature was changed somewhere along the way from IMavenProjectFacade[]
to List<IMavenProjectFacade>
.
I‘ll close this now, but thanks for the hint nevertheless.
Hey everyone,
I noticed the following error that happens not all the time, but randomly. Which is super confusing:
For every project we run the following method and even with debugging it only happens very sporadically and doesn't look deterministic.
I now put the
NoSuchMethodError
in the catch block. As I said, for some projects, it has no problems, but rarely it fails. It happens on all the following Eclipse IDE versions and m2e:Does this ring a bell? For me it doesn't make any sense as the method should be there. For new and older versions of m2e.
Best, Tobias