Integrated: 8299504: Resolve `uses` and `provides` at run time if the service is optional and missing
Alan Bateman
alanb at openjdk.org
Sat Jan 25 07:28:50 UTC 2025
On Thu, 16 Jan 2025 11:38:19 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> Extend the support for optional dependences to allow for a service to be optional. The post-resolution consistency check specified by `Configuration.resolve` is relaxed to allow for the possibility that the service from a module in the module graph at compile-time but the module is not in the module graph at run-time.
>
> ConfigurationTest is ported from TestNG to JUnit and updated to add new tests testUsesOptionalService$N and testProvidesOptionalService$N. The port to JUnit is mostly trivial/mechanical changes but it does create a bit of noise - I can move this port to another issue if it makes the harder to see the additions to the test.
This pull request has now been integrated.
Changeset: 1d2eb2fb
Author: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/1d2eb2fbaea700fc77b644b5eb5a8a7c40ede108
Stats: 581 lines in 4 files changed: 279 ins; 51 del; 251 mod
8299504: Resolve `uses` and `provides` at run time if the service is optional and missing
Co-authored-by: Alan Bateman <alanb at openjdk.org>
Co-authored-by: Alex Buckley <abuckley at openjdk.org>
Reviewed-by: sundar
-------------
PR: https://git.openjdk.org/jdk/pull/23147
More information about the core-libs-dev
mailing list