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

Compiler emitting spurious errors when constructor reference type is inferred and explicit type arguments are supplied

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8, 8-repo-lambda
    • tools
    • None
    • b108
    • Verified

      The compiler should reject cases in which a raw constructor reference is used in combination with explicit type arguments on the constructor call - i.e.

      ArrayList::<String>new

            vromero Vicente Arturo Romero Zaldivar
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: