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

Unwarranted unchecked warning for inner class of "wildcard" type

    XMLWordPrintable

Details

    • b67
    • generic
    • generic
    • Verified

    Description

      This program should compile without a warning:

      public class X<T> {
          private X<?>.Inner inner;
          public X() {
      this.inner = new X().new Inner();
          }
          private class Inner {}
      }

      Attachments

        Activity

          People

            ahe Peter Ahe
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: