Mantis - Resin
Viewing Issue Advanced Details
980 minor always 03-08-06 12:00 05-16-07 15:58
cmonster  
ferg  
normal  
closed 3.0.18  
fixed  
none    
none 3.1.1  
0000980: XmlSAXParser.isValidating() returns true, but does not validate
com.caucho.xml.parsers.XmlSAXParserFactory$XmlSAXParser.isValidating() returns true, but the parse does not validate. java's api docs are perhaps ambiguous, indicating this method should return "true if this parser is configured to validate XML documents; false otherwise."

however, i think this is misleading for the client. if i am explicitly testing to see if my parser is validating, i would expect this method to return false; there is no other way for the client to know this parser does not validate.

http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/parsers/SAXParser.html#isValidating() [^]

There are no notes attached to this issue.