Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8022753

java.sql.SQLXML.setResult() erroneous sample code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • 7, 8
    • core-libs
    • None
    • b105

    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();


      Attachments

        Activity

          People

            lancea Lance Andersen
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: