Closed hohwille closed 4 months ago
I can't find Eclipse project there. Many issues in JDT are related to the way how projects are setup. Please provide some simple self containing example that shows the issue, ideally as a zipped project.
Closing due to missing information
I can't find Eclipse project there. Many issues in JDT are related to the way how projects are setup.
For the record: All I do is "import as existing maven project". I also analyzed and described the problem in detail. Surely if Eclipse is drowning in issues, this is not high prio and can be ignored. I have a workaround by moving the abstract base test to a different package.
Problem
I am using the JPMS (Java Platform Module System) in my OSS project. Now I stumbled over a bug in Eclipse preventing my JUnit test to work:
src/main/java
and therefore cannot be exported inmodule-info.java
@Test
method doing some generic tests to be covered by all extended test cases.The error is that I get this unexpected stacktrace:
Links
Hints
Please note that
mvn
viamaven-surefire-plugin
does not cause this error and in the terminal, I can run my tests successfully withmvn test
. As it seemsmvn
had the same bug but it has been fixed many years ago: https://issues.apache.org/jira/browse/SUREFIRE-1909So maybe using
add-opens
could help to fix this.Environment