< prev index next >

test/javax/xml/jaxp/unittest/javax/xml/validation/Bug4969089.java

Print this page
rev 670 : [mq]: 8061549

*** 50,64 **** final SAXException EUREKA = new SAXException("NewSchema007"); SchemaFactory schemaFactory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema"); StringReader reader = new StringReader(xsd1); StreamSource source = new StreamSource(reader); DefaultHandler errorHandler = new DefaultHandler() { ! public void fatalError(SAXParseException _) throws SAXException { throw EUREKA; } ! public void error(SAXParseException _) throws SAXException { throw EUREKA; } }; schemaFactory.setErrorHandler(errorHandler); --- 50,64 ---- final SAXException EUREKA = new SAXException("NewSchema007"); SchemaFactory schemaFactory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema"); StringReader reader = new StringReader(xsd1); StreamSource source = new StreamSource(reader); DefaultHandler errorHandler = new DefaultHandler() { ! public void fatalError(SAXParseException ignore) throws SAXException { throw EUREKA; } ! public void error(SAXParseException ignore) throws SAXException { throw EUREKA; } }; schemaFactory.setErrorHandler(errorHandler);
< prev index next >