users@jaxb.java.net

Re: Does not throw an validation exception

From: Sriram Thyagarajan <Sriram_Thyagarajan_at_KEANE-NNE.com>
Date: Fri, 09 May 2003 11:05:11 -0400

So how do I fix this ? Any suggestions ? Since I used a JAXB customization
to convert a invalid XSD date, all the other validations will be gone ?

Thanks
-----Original Message-----
From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
Sent: Thursday, May 08, 2003 11:18 AM
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: Re: Does not throw an validation exception


> Is this what the ValidationEventCollector do ? collect all events and make
> it available for further processing(where it can be processed as needed) ?

Yes.

> Also why would an error on one element affect the next one ?

That's how error recovery works in many text processing system. Just
think about javac. When you incorrectly type:

    foo.invokeMethod( arg1, arg2[index arg3 arg4 ;

Javac will just report one error in this sentence.

regards,
--
Kohsuke KAWAGUCHI                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com