Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-90

Transformation can fail with an NPE if a subclass which belongs to the bootstrap loader gets loaded before its superclass has been loaded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.2.1
    • None
    • None
    • None

      Assume class SubClass extends class SuperClass both are in the bootstrap classpath. If SubClass is loaded before SuperClass then the transformer will look for overriding rules which apply to SubClass. This means it will try to load the byetcode of SuperClass using loader.getResourceAsStream() where loader is the class loader of SubClass. Since SubClass is in the boot path loader will be null. It should detect this case and use the system loader instead.

            rhn-engineering-adinn Andrew Dinn
            rhn-engineering-adinn Andrew Dinn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: