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

partialUpdateFooMainClass test in tools/jar/modularJar/Basic.java needs to be re-examined

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
    • Subcomponent:
      jar
    • Resolved In Build:
      b158

      Backports

        Description

        partialUpdateFooMainClass has the following:

              jar("--create",
                    "--file=" + modularJar.toString(),
                    "--main-class=" + "IAmNotTheEntryPoint",
                    "--no-manifest",
                    "-C", modClasses.toString(), ".") // includes module-info.class
                   .assertSuccess();

        which fails after the JDK-8173393 because the main class cannot be in the unnamed package.

        The test has been temporarily disabled and needs to be re-examined to find a better way to test updating the main class.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sherman Xueming Shen
                Reporter:
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: