Description
Error exists in JDK7 and JDK8
A DESCRIPTION OF THE PROBLEM :
URL: http://docs.oracle.com/javase/7/docs/api/java/sql/SQLXML.html
http://docs.oracle.com/javase/7/docs/api/java/sql/SQLXML.html
The documentation for java.sql.SQLXML.setResult(...) contains the sample code:
ContentHandler contentHandler = saxResult.getXMLReader().getContentHandler();
SAXResult has no method " getXMLReader() " or " getContentHandler() " . Seems a copy-paste typo from the getSource doc. Unless there are more errors that line should read:
ContentHandler contentHandler = saxResult.getHandler();
A DESCRIPTION OF THE PROBLEM :
URL: http://docs.oracle.com/javase/7/docs/api/java/sql/SQLXML.html
http://docs.oracle.com/javase/7/docs/api/java/sql/SQLXML.html
The documentation for java.sql.SQLXML.setResult(...) contains the sample code:
ContentHandler contentHandler = saxResult.getXMLReader().getContentHandler();
SAXResult has no method " getXMLReader() " or " getContentHandler() " . Seems a copy-paste typo from the getSource doc. Unless there are more errors that line should read:
ContentHandler contentHandler = saxResult.getHandler();