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

Prepare system classes be defined by a non-null module loader

XMLWordPrintable

    • b55
    • generic
    • generic
    • Verified

      The system classes are loaded and defined by the VM bootstrap class loader (null).
      In modular world, the system classes are modularized into multiple modules and many
      of which will be loaded by its own (non-null) module loader.

      The JDK implementation have the assumption that the defining class loader of
      all system classes is null and this needs to be fixed to prepare for modularization.
      Typical patterns are:

      Class.forName(classname, false, null) should be changed to:
         Class.forName(classname, false, <loader of the current class>)

      if (loader == null) condition check should be modified to check if the loader
      is responsible for loading system classes.

            mchung Mandy Chung (Inactive)
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: