Community
Participate
Working Groups
Same scenario as Bug 527670 (originally I wanted to report this bug, bug stumbled Bug 527670 when using a Java 9 JRE for my minimal test case :-). Consider the following class First: package org.example; import java.util.Arrays; public class First { public static void main(String[] args) { Arrays.asList(args).stream().map(First::transform).forEach(System.err::println);; } public static String transform(String s) { return s.toLowerCase(); } } Select the declaration of "transform" and do a Refactor > Move to another type "org.example.Second". Under Photon.M3 this breaks the code, i.e., it introduces a compilation error: public class First { public static void main(String[] args) { Arrays.asList(args).stream().map(First::Second.transform).forEach(System.err::println);; } } The First::Second.transform part is broken.
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.
I have tested on Eclipse v4.25.0.v20220831-1800 – the problem is still there.