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

Use main class from main module if available

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: