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

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: