Community
Participate
Working Groups
package example; public class A { } package example; import java.util.Arrays; import java.util.List; public class B { public void delete() { A a = new A(); List<String> list = Arrays.asList("foo", "bar"); list.forEach(a::delete|); } } |: cursor position Error message: "The type A does not define delete(String) that is applicable here" Quick fix: "Add missing method 'delete' to class 'B'" Class B after quick fix: package com; import java.util.Arrays; import java.util.List; public class B { public void delete() { A a = new A(); List<String> list = Arrays.asList("foo", "bar"); list.forEach(a::delete); } private void delete(String string1) { } } Expected: Add the missing method to class A.
https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/167022 looks like the intention was to not offer a quick fix option for this case?
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.