Questions about XJC tool.
Alan.Bateman at oracle.com
Mon Mar 7 09:05:58 UTC 2011
Sean Chou wrote:
> Just two questions about xjc.
> About this bug "XJC fails to generate a class for a type with >1
> is there a plan to fix it?
> And I find the xjc tool is under the directory "jaxws/.hg/store/data/src/
> share/classes/com/sun/tools/internal/" in my working copy(using
> hg fclone http://hg.openjdk.java.net/jdk7/jdk7/). Is there any other place
> I can find its source?
As David points out, this issue appears to have been fixed last year by
adding a new option to xjc. I don't know why bugs.sun.com isn't showing
the up to date bug but there has been some ongoing glitches with the
mirroring of the bugs. I'll ask the folks who maintain this to see if
this can be resolved.
In any case, it's worth remembering that the JAX* components are
maintained in the upstream jaxp and jax-ws projects so this is why you
don't see the code in the jdk7 forest. The jaxws repository in the
forest will build it from a local copy of the source or it can download
it. The .hg/store tree is where mercurial keeps its internal data
structures so you probably don't want to be changing files in there. The
sources you see in there are probably from 2009, when OpenJDK ceased to
maintain its own copy of the this code.
More information about the core-libs-dev