-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
5.0
-
generic
-
generic
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
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