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

Lambda Spec: Error for TypeVariable.super.m()

XMLWordPrintable

    • Verified

      15.12 broadens the 'super' invocation syntax to allow a TypeName rather than a ClassName.

      15.12.1 assumes this name refers to either a class or an interface. It does not account for the possibility that it refers to a type variable:

      <T> void test() { T.super.m(); }

      Of course, this should result in an error.

            dlsmith Dan Smith
            dlsmith Dan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: