Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8231382

Use main class from main module if available

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • internal
    • internal
    • tools

      Use main class from main module if available.

      We used to not require the main class, but without checking if there was a "ModuleMainClass" attribute in the main modules module descriptor. As a result of this, if the module did not have a "ModuleMainClass" attribute, the failure would be when the app was run, instead of when we built it. It should be an error to not specify a main class in the --module option unless the modules given has a "ModuleMainClass" attribute.

            almatvee Alexander Matveev
            almatvee Alexander Matveev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: