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