ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [GUMP] Build Failure - smoketest
Date Wed, 08 Jan 2003 07:48:13 GMT
On Tue, 07 Jan 2003, Nicola Ken Barozzi <nicolaken@apache.org> wrote:

> Errr, so it's a bug, right?

I think so.  At least the code should check for null.

> I'm confused, how can I know if a class can be loaded if I can't get
> a classloader?  8-?

If Class.getClassLoader is null, the classloader is the system
classloader, i.e. you'd use Class.forName.

IIRC the VMs I've encountered that could return null in
Class.getClassLoader have either been 1.1 VMs or written by IBM.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message