dennis lucero created NETBEANS-5779: ---------------------------------------
Summary: "Organize Imports" removes import of a referenced record Key: NETBEANS-5779 URL: https://issues.apache.org/jira/browse/NETBEANS-5779 Project: NetBeans Issue Type: Bug Affects Versions: 12.4 Reporter: dennis lucero When the "On Save" action "Organize Imports" is enabled, references to records from other files are removed when saving the file. Simplified example: File org/example/MainApp.java: {code:java} package org.example; import org.example.model.Foobar; public class MainApp { private Foobar f; } {code} File org/example/model/Foobar.java: {code:java} package org.example.model; public record Foobar(String name) { } {code} After saving MainApp.java, the import line is removed and the file cannot be compiled. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists