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

Lambda Spec: Prohibit RawClass::<Foo>new

    Details

    • Subcomponent:
    • Verification:
      Verified

      Description

      This is specified as a compiler error:

      class C<T> { <U> C() {} }

      new <String> C<>()

      The equivalent method reference should also be illegal:

      C::<String>new

      javac already reports an error on the method reference.

        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: