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

ClassCastException should indicate actual and expected classes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6u24, 8
    • core-libs
    • generic, x86
    • generic, windows_7

      A DESCRIPTION OF THE REQUEST :
      The detail message associated with ClassCastException should always indicate the actual and expected type of the object being casted.

      JUSTIFICATION :
      It is impossible to fix ClassCastExceptions without knowing the actual and expect types. Currently the only way to fix such bugs is to reproduce the issue in a debugger, something that is not always possible or easy to do.

            darcy Joe Darcy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: