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

class type cast from HTMLDocument to DocumentRange throws exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 6u14, 7, 7u3, 8
    • Fix Version/s: 9
    • Component/s: deploy
    • Subcomponent:
    • CPU:
      generic, x86
    • OS:
      generic, windows, windows_xp

      Description

      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/src/CastDocumentRangeTest.java

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No exception is expected.
      ACTUAL -
      The following exception is thrown:
      java.lang.ClassCastException: sun.plugin.dom.html.HTMLDocument cannot be cast to org.w3c.dom.ranges.DocumentRange
      at CastDocumentRangeTest.init(CastDocumentRangeTest.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/CastDocumentRangeTest.java

        Attachments

          Activity

            People

            • Assignee:
              cbensen Chris Bensen (Inactive)
              Reporter:
              qgong Fred Gong (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: