[ 
https://issues.apache.org/jira/browse/NETBEANS-6365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17474948#comment-17474948
 ] 

Benjamin Asbach edited comment on NETBEANS-6365 at 1/12/22, 8:56 PM:
---------------------------------------------------------------------

I'm also facing this problem. I attached a sample project.

Environment: Linux (NixOS), OpenJDK17

1) Enable On Save Action: Organize Imports
2) Go to AClass
3) Press Ctrl + Shift + I to Organize imports
4) Save file


was (Author: asbachb):
I added a example project. To reproduce

1) Enable On Save Action: Organize Imports
2) Go to AClass
3) Press Ctrl + Shift + I to Organize imports
4) Save file

> Organise imports removes imports that are records
> -------------------------------------------------
>
>                 Key: NETBEANS-6365
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-6365
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Other
>    Affects Versions: 12.6
>         Environment: Windows 10
>            Reporter: Paul Woods
>            Priority: Major
>         Attachments: organize-imports-records-bug.zip
>
>
> Starting with 12.6 when I select 'organise/remove unused imports on save' I 
> find that an import that is a record rather than a class gets removed.
> The keybindings for organise imports also seems to have gone?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
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

Reply via email to