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

missing rawtypes warnings in anonymous inner class

    Details

    • Subcomponent:
    • Resolved In Build:
      b10
    • CPU:
      unknown
    • OS:
      generic
    • Verification:
      Verified

      Description

      This code:

      class Test<X> {
          { new Object() {
             Test x;
          }; }
           
      }

      should generate a warning when compiled with the -Xlint:rawtypes flag, but it doesn't.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mcimadamore Maurizio Cimadamore
                Reporter:
                mcimadamore Maurizio Cimadamore
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: