Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Detecting if a class is already known Date: Fri, 29 Jul 2011 10:44:50 -0700 Organization: A noiseless patient Spider Lines: 16 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 29 Jul 2011 17:44:54 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="XjIWM99mD7Ijfdu600oVPA"; logging-data="3990"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TEfxmhXNIt0wXgqUk0LRSQDFaUnXNbD0=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: Cancel-Lock: sha1:SmAXxrE9mU+kYZ/qLtgdclZAVn4= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6663 On 7/29/2011 9:47 AM, Ross wrote: > However, I don't want to load classes that already exist This is already covered by the ClassLoader docs. You can also search for a tutorial how it all works, but basically you overload findClass and don't touch the other methods and it all works out. loadClass automatically searches for existing classes first, then only calls findClass if it needs too. IIRC. > private boolean known( String className )