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

Lambda Spec: Prohibit RawClass::<Foo>new

XMLWordPrintable

    • Verified

      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.

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

              Created:
              Updated:
              Resolved: