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

Unable to use getResources to load resources from jboss-modules jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.8.2.Final, 1.9.0.Final
    • None
    • None
    • None

      It appears that if you have a module with a dependency on org.jboss.modules it is no longer possible to use getResource() to get the class file:

      loader.getResource("org/jboss/modules/Module.class") = null
      loader.loadClass("org.jboss.modules.Module") =

      {Class@1071}

      "class org.jboss.modules.Module"

      This breaks some java agents, as it can be necessary to get access to these classes to recompute the stack map table attribute.

              dlloyd@redhat.com David Lloyd
              sdouglas1@redhat.com Stuart Douglas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: