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

Improve usability of raw warnings

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • tools
    • b109
    • unknown
    • generic
    • Verified

      The comments about raw warnings in [1] suggest that the following improvements should be implemented:

      *) no raw warnings on instanceof

      e.g.

      xxx instanceof List // no warning

      *) no raw warnings on cast

      e.g.

      (List)xxx //no warning

      *) no raw warnings when the type parameter of Class is raw

      e.g.

      Class<List> cl = ... //no warning

      [1] - http://blogs.sun.com/mcimadamore/entry/diagnosing_raw_types

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: