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

(cl) need convenient way to load classes using the thread's context class loader

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      J2EE uses the thread's context class loader to point to the top most
      application class loader. Libraries that need to dynamically load
      classes that may've been delivered with the application use the
      context class loader to load the class. However, access to the
      context class loader requires RuntimePermission("getClassLoader").
      The appropriate doPrivileged code is a pain to write. It would
      be nice to put this code into a helper class in the JRE.
      The helper class could do the doPrivileged and then load
      the named class using the context class loader. A variant of
      Class.forName seems most appropriate.


      ###@###.### 2005-06-03 21:55:56 GMT

        Attachments

          Activity

            People

            • Assignee:
              valeriep Valerie Peng
              Reporter:
              bshannon Bill Shannon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: