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

JVM does not allow defining boot loader modules in exploded build after module system initialization

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      The JVM fails to correctly defined a module in the exploded build if the module is for the boot loader and the module system has already been initialized. (The module does get correctly defined in the normal build.)

      The problem is caused by this code at the end of Modules::define_module():

        // If the module is defined to the boot loader and an exploded build is being
        // used, prepend <java.home>/modules/modules_name, if it exists, to the system boot class path.
        if (loader == NULL &&
            !Universe::is_module_initialized() &&
            !ClassLoader::has_jrt_entry()) {
          ClassLoader::add_to_exploded_build_list(module_symbol, CHECK);
        }


        Attachments

          Activity

            People

            • Assignee:
              hseigel Harold Seigel
              Reporter:
              hseigel Harold Seigel
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: