JDK-4234398 : Standard way to force a class to be reloaded from disk
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.2.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1999-04-30
  • Updated: 1999-04-30
  • Resolved: 1999-04-30
Related Reports
Duplicate :  
Description

Name: vi73552			Date: 04/30/99


It would be most helpful if the ClassLoader provided a way to indicate
if a class should be reloaded from disk. Tracing through the solaris 
version of the classloader it appears that the native functions
used by loadClass search a cache. What would be nice is a flag
to loadClass telling it to load a new version of the class from
disk. This does not mean the old version has to be unloaded just
that the old version would no longer be selected for new references
to the class (old references would be unchanged). I guess there
might be some issues with the resolving of references to static
functions.
(Review ID: 57691) 
======================================================================