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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs

      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

            Unassigned Unassigned
            bshannon Bill Shannon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: