-
Type:
CSR
-
Resolution: Approved
-
Priority:
P3
-
Component/s: core-libs
-
minimal
-
Java API
-
SE
Summary
ModuleFinder.compose should accept varargs.
Problem
java.lang.module.ModuleFinder is a new interface for Java SE 9. This CCC proposes two changes to this interface:
-
The static
composemethod creates a ModuleFinder by composing two module finders. The original intention was that this method would take a varargs so that it could be called with any number of module finders. This API change wasn't done in time for the initial integration into JDK 9. -
The static
emptymethod is redundant and can be removed.
Solution
- Change ModuleFinder.compose to take a varargs.
- Remove ModuleFinder.empty()
- Update javadoc to make it clearer when FindException is thrown (JCK request)
Specification
See attached specdiffs.
- csr for
-
JDK-8152650 ModuleFinder.compose should accept varargs
-
- Resolved
-
- relates to
-
CCC-8142968 Module System implementation
-
- Closed
-