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

Lambda Spec: Specify inference for function descriptor throws clauses

XMLWordPrintable

    • Verified

      When a descriptor has an inference variable in its throws clause, the status quo approach will typically infer that variable to be its upper bound (such as Exception). It would be better to identify a lower bound from the lambda body, and in the absence of any thrown exception types, choose RuntimeException.

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

              Created:
              Updated:
              Resolved: