[2188] in java-interest
Heres a confusing thing...
daemon@ATHENA.MIT.EDU (Chanda Dharap)
Tue Sep 26 17:33:37 1995
Date: Tue, 26 Sep 95 11:11:57 PDT
From: chanda@PRPA.Philips.COM (Chanda Dharap)
To: java-interest@java.sun.com
Someone posted the following question and now there are two distinct
replies.
Which one guys ??
- Chanda Dharap
------------------
email: chanda@prpa.philips.com
--------------------------------------------------------------------
Can I define my own class loader which loads classes from the file
system? If I do, will I be subject to the security measures which are
in place for WWWClassLoader, which loads classes from the network? Or
are the security measures dependent on that particular class loader
subclass?
Also, if my class loader periodically checks the file system for an
update to that class, and reloads that class, will the system actually
successfully start using the new definition of the class. Something
tells me that it will actually continue to use the original
definition, because the class is actually stored internally in the
interpreter.
-----------------------------------------------------------------------
1>The next time that the class is loaded from that class loader it will
1>return the new class. The old class will eventually be gc'd (although
1>that isn't implemented). Existing instances of the new class will not
1>automatically be upgraded.
2>Your latter statement is the more correct one. It is of course possible
2>to define a native method in your class loader that does a manual substitution
2>on the internal class list however that is probably a fairly dangerous
2>operation, especially if you make an incompatible class change.
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com