Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-250

ModuleClassLoader skips bootstrap class loader for custom namespaces

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • None
    • Core
    • None
    • Hide

      Inject a class into the bootstrap class loader using the instrumentation API or a startup command and try to load it with the ModuleClassLoader what yields a ClassNotFoundException.

      Show
      Inject a class into the bootstrap class loader using the instrumentation API or a startup command and try to load it with the ModuleClassLoader what yields a ClassNotFoundException.

    Description

      The JBoss module class loader (http://docs.jboss.org/osgi/jboss-osgi-1.0.0/apidocs/org/jboss/modules/ModuleClassLoader.html) does not load classes on the bootstrap class loader if they are not within the java.* namespace. This makes it impossible to inject custom classes into the bootstrap class loader what is customary for some tools and Javaagents.

      It also violates the class loader contract.

      Attachments

        Activity

          People

            dlloyd@redhat.com David Lloyd
            rafael.wth Rafael Winterhalter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: