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

ClassCastException raised when casting HTMLDocument to DocumentTraversal

XMLWordPrintable

    • generic, x86
    • generic, windows, windows_xp

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        1. open the following url with java console open:
        http://sqeweb/jsn/users/fred/deployment_ws/fred/deployment_6_UR_int_ws/deployment/src/plugin/FunctionalTest/FunctionalTest/html/CastDocumentTraversalTest.html

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        No exception will be printed in console and string "object type cast success" will be printed.
        ACTUAL -
        The following exception is printed:
        java.lang.ClassCastException: sun.plugin.dom.html.HTMLDocument cannot be cast to org.w3c.dom.traversal.DocumentTraversal
        at CastDocumentTraversalTest.init(CastDocumentTraversalTest.java:21)

        REPRODUCIBILITY :
        This bug can be reproduced always.

        The applet source code is:
        http://sqeweb/jsn/users/fred/deployment_ws/fred/deployment_6_UR_int_ws/deployment/src/plugin/FunctionalTest/FunctionalTest/src/CastDocumentTraversalTest.java

              Unassigned Unassigned
              qgong Fred Gong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: