users@jaxb.java.net

supressing class generation with xjc

From: Simons, William <William.Simons_at_childrens.harvard.edu>
Date: Thu, 10 Mar 2005 14:38:30 -0500

In response to message
https://jaxb.dev.java.net/servlets/ReadMsg?list=users&msgNo=3880

 

"The current way of doing this is to instruct users to:

 

            1. compile their schemas

            2. delete a part of the generated stuff that corresponds to

               the framework schema"

 

We've run into this exact same packaging issues. I've tried the method
above and it doesn't quite work. Marshalling the generated objects
behaves as expected, but unmarshalling causes a ClassCastException. The
issue is that in the "external" project library, the
impl.runtime.AbstractUnmarshallingEventHandlerImpl.spawnChild method
casts objects as an UnmarshallableObject (defined in the same package).
But the object defined in the "framework" package implements
UnmarshallableObject from its own package... thus the ClassCastException
(I think).

 

Jerry, did you try this out with success? We are either missing some
key step or the workaround doesn't work in all cases.

 

Thanks in advance,

Bill Simons

Technical Architect / Principal Software Engineer

Children's Hospital Boston

Children's HST Informatics Program

http://ping.chip.org