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

Use main class from main module if available

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: internal
    • Fix Version/s: internal
    • Component/s: tools
    • Labels:

      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

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

                Dates

                Created:
                Updated:
                Resolved: