classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Re: RFC: Don't call protected addURL() method from URLClass


From: Andrew Haley
Subject: [cp-patches] Re: RFC: Don't call protected addURL() method from URLClassLoader constructors
Date: Wed, 19 Oct 2005 17:36:21 +0100

Mark Wielaard writes:
> This is the last piece needed to get JBoss (4.0.3) to start up. JBoss
> has some ClassLoaders that subclass URLClassLoader and override the
> protected addURL() method. These ClassLoaders don't expect addURL() to
> be called while they are calling super() in their own constructor since
> they haven't had a change to setup all their state correctly then.
> 
> This patch makes sure that addURLs() as called from the URLClassLoader
> constructors don't call the protected addURL() method.
> 
> 2005-10-19  Mark Wielaard  <address@hidden>
> 
>     * java/net/URLClassLoader.java (addURLs): Don't call addURL(), but
>     call urls.add() and addURLImpl() directly on each URL.
> 
> Andrew, I know you hacked on this code to get Jonas running nicely.
> Could you check that this doesn't break anything for you? We don't want
> to loose that nice 96.79% success rate!
> 
> Works fine for some other applications that use URLClassLoaders
> extensively, like Eclipse.

You really shouldn't consider committing a patch like this without
adding comments.  After all, what is to stop someone changing it back?

Andrew.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]