This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: URLClassLoader update
>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:
Mark> Now that I have looked closer at the code again I am sure that
Mark> it should not call getResource.
Mark> Also there is no mention in any of the documentation that I found that
Mark> findClass() will use findResource() to get the class bytes. I did some
Mark> tests against Blackdown 1.4.1 and when I subclass URLClassLoader and
Mark> only override findResource() then calling findClass() on that
Mark> ClassLoader will not call the findResource() method of that class.
Thanks.
Mark> Could you show me where/how Eclipse is using this?
I looked at it again, in light of your explanation. Now I think
Eclipse must have a bug here. It overrides findResource and
loadClass, but not findClass. However, the JDK docs recommend
implementing findClass and not loadClass. That seems strange at
least.
Tom