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

missing rawtypes warnings in anonymous inner class

XMLWordPrintable

    • b10
    • unknown
    • generic
    • Verified

      This code:

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

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: