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

ActivationGroupImpl.newInstance does not set context classloader for impl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.1
    • 1.2.2
    • core-libs
    • None
    • ladybird
    • generic
    • generic
    • Verified

        ActivationGroupImpl.newInstance should set the context classloader to the classloader of the activatable impl class before calling the class constructor, but doesn't. As a result, if the constructor attempts to download code, or creates threads that later attempt to download code, and the downloaded code needs to resolve classes that are in the activatable object's classloader but aren't in the activation group's classpath, the class resolution will fail, or a class will be downloaded instead of being found locally, usually resulting in a ClassCastException.

              ldorninsunw Laird Dornin (Inactive)
              bscheiflsunw Bob Scheifler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: