Date: Tue, 14 Apr 1998 14:09:34 -0700
Message-Id: <199804142109.OAA10285@games.eng.sun.com>
From: Li Gong <gong@games.eng.sun.com>
To: gback@cs.utah.edu
Subject: Re: native methods and ClassLoaders
In-Reply-To: gback@cs.utah.edu's mail of Mon, 13 April, 1998
<199804132232.QAA00498@lal.cs.utah.edu>
gback@cs.utah.edu writes:
>
> Thanks for the quick reply!
>
> What about the first part of the question: does the presence
> of native methods prevent me from redefining classes?
>
> Or can I parse your answer such that "having native methods" is synonymous
> to being "core/system" or "present on CLASSPATH"?
[forwarding an answer from one of our resident experts ...]
In 1.2, one can define classes with native methods in class loaders.
One can redefine any class in class loaders, including
java.lang.Object. However, the attempt to use that class as the normal
java.lang.Object will immediately cause a linkage error to be thrown
in 1.2.
Li
--