ModuleFinder.compose should accept varargs.
java.lang.module.ModuleFinder is a new interface for Java SE 9. This CCC proposes two changes to this interface:
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.
emptymethod is redundant and can be removed.
- Change ModuleFinder.compose to take a varargs.
- Remove ModuleFinder.empty()
- Update javadoc to make it clearer when FindException is thrown (JCK request)
See attached specdiffs.