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

Hint :"Use explicit parameter type" is not working with var type lambda parameters

    XMLWordPrintableJSON

Details

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

    Description

      For the below statement

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

      Selecting Fix hint 'use explicit parameter types' changes statement to

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

      which is incorrect and needs to be fixed.

      Attachments

        Activity

          People

            rtaneja Reema Taneja
            arunava.sinha ARUNAVA SINHA
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: