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

Compiler fails to reject access to static member in parameterized type

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        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 {
                }
            }
        }

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: