Community
Participate
Working Groups
Not sure since when but I I copy and paste lines in the Java editor the last line gets duplicated. Example: ------------- import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*; public class Snippet245 { public static void main(String [] args) { var display = new Display(); var shell = new Shell(display); } } ------------------ Copy the two var lines and paste them and you end up with: import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*; public class Snippet245 { public static void main(String [] args) { var display = new Display(); var shell = new Shell(display); var display = new Display(); var shell = new Shell(display);var display = new Display(); } }
Tested with: Eclipse SDK Version: 2021-12 (4.22) Build id: I20210907-1800 OS: Linux, v.5.11.0-31-generic, x86_64 / gtk 3.24.25, WebKit 2.32.3 Java vendor: AdoptOpenJDK Java runtime version: 16.0.1+9 Java version: 16.0.1
*** This bug has been marked as a duplicate of bug 575872 ***
Created attachment 287108 [details] Screencast