Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-807

New Error Rule required for fixing invalid lambda expression parameters in JDK-11

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      IntBinaryOperator f3 = (int x, var y) -> x + y;

      Displays below error

        (cannot mix 'var' and explicitly-typed parameters)

      Proposed Error Rule would do the below fix

      IntBinaryOperator f3 = (var x, var y) -> x + y;

       

      Attachments

        Activity

          People

            vikas.prabhakar vikas kumar prabhakar
            rtaneja Reema Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: