Uploaded image for project: 'CCC Migration Project'
  1. CCC Migration Project
  2. CCC-8152650

ModuleFinder.compose should accept varargs

XMLWordPrintable

    • 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:

      1. The static compose method 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.

      2. The static empty method 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.

            alanb Alan Bateman
            alanb Alan Bateman
            Dmitry Bessonov, Mandy Chung
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: