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

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

    Details

    • Subcomponent:
    • Verification:
      Verified

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: