users@jaxb.java.net

Re: SOA, noValidator, noValidatingUnmarshaller

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 28 Sep 2005 10:26:23 -0700

Aleksei Valikov wrote:
> I've added one line to make bgm.ser conditional:
>
> Grammar purifiedGrammar = AGMBuilder.remove( grammar );
> if (_opt.generateValidatingUnmarshallingCode ||
> _opt.generateValidationCode )
> try {
> targetPackage.addResourceFile( new JSerializedObject(
> "bgm.ser",purifiedGrammar) );
> } catch( IOException e ) {
> // we know that BGM can be always serialized. So this
> shouldn't be possible
> throw new JAXBAssertionError(e);
> }
>
> If I'm not mistaken and this fix is appropriate, could you apply it?

Looks good. Done. Thanks for the patch.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com