users@jaxb.java.net

Quiet mailing list... [Re: NPE with Messages.format

From: Dan Diephouse <dan_at_envoisolutions.com>
Date: Tue, 22 Nov 2005 14:07:32 -0500

This mailing list is awfully quiet on the Sun engineer front. Is anyone
going to integrate this patch? Is someone still going to upload the JAXB
jars to the java.net repository?

- Dan

Dan Diephouse wrote:

> The Messages.format method depends on classloaders implementing
> Class.getPackage(), which isn't always the case (it can return null,
> see the javadocs). So while building you can get an exception like:
>
> java.lang.NullPointerException
> at com.sun.tools.xjc.Messages.format(Messages.java:33)
> at com.sun.tools.xjc.Driver.getBuildID(Driver.java:351)
> at com.sun.tools.xjc.XJC2Task.execute(XJC2Task.java:308)
> at org.apache.tools.ant.Task.perform(Task.java:341)
>
> I've attached a patch which remedies the problem. Cheers,
> - Dan
>
> PS - Is someone still going to upload the JAXB jars?
>
T

-- 
Dan Diephouse
Envoi Solutions LLC
http://netzooid.com