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

Compiler fails to reject access to static member in parameterized type

XMLWordPrintable

    • b03
    • generic
    • generic
    • Verified

        The compiler fails to reject this program:

        public class Test<T extends Number> {
            Test<?>.Inner.InnerMost x = null;
            Test<Inner.InnerMost>.Inner.InnerMost y = null;
            private static class Inner<S> {
                private static class InnerMost {
                }
            }
        }

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: