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

Incorrect return type on "Refactor->Create Method" inside lambda

    XMLWordPrintableJSON

Details

    Description

      Using the following source code:

      public class BugKiller {
      	public static void kill(){
      		Function<String, List<Integer>> logic;
      		logic = item->doThingWithString(item, 5, true);
      	}
      }
      

      Invoking "Create Method" on `doThingWithString` will create a method with the return type of "Function<String, List<Integer>>" instead of "List<Integer>"

      Attachments

        Activity

          People

            Unassigned Unassigned
            Sir Intellegence Austin Stephens
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: