-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indirect static required modules should stay on classpath #24
Comments
@rfscholte these changes are an improvement, but not quite there yet. Your changes fixed the transitive dependency due to However, there is another case: moduleA {
exports a;
requires moduleB;
requires static moduleD;
}
moduleB {
exports b;
requires static moduleC;
}
moduleC {
exports c;
}
moduleD {
exports d;
} Before your changes, the module-path was: With your current changes the module-path is: The module-path should really be: So the check on I believe that this is already what is being done with Maven's Makes sense? |
I've added another unittest reflecting your testcase and according to its result it behaves as expected. |
@rfscholte you are right that the current behavior is correct - I have mistakenly assumed it was not because I had a failure, but further investigation shows that the problem is mine. For sake of discussion, my case is the following: moduleA {
exports a;
requires moduleB;
requires static moduleD;
}
moduleB {
exports b;
requires static moduleC;
}
moduleC {
exports c;
}
moduleD {
exports d;
requires transitive moduleE;
} When running the tests with Surefire, I now have a correct module-path with The solution is to configure Surefire with I think your changes are good. Thanks! |
Based on https://issues.apache.org/jira/browse/SUREFIRE-1667 it makes sense to have 2 different types of resolution. By doing this on the
LocationManager
you can use the request for the different resolution results.The text was updated successfully, but these errors were encountered: