homberghp opened a new issue, #7044:
URL: https://github.com/apache/netbeans/issues/7044

   ### Apache NetBeans version
   
   Apache NetBeans 20
   
   ### What happened
   
   When you have an inner record like so;
   
   ```
   package example;
   import java.time.LocalDate;
   public class Example {
       public record Studentje(int id, String fullName, LocalDate dob){}
   }
   
   ```
   and for some reason you want it to be an outer class in its own file, then 
   refactor Move Inner to Outer level, then the result in the that file is
   
   ```
   package example;
   import java.time.LocalDate;
   public class Studentje {
   }
   ``` 
    dropping all record details.
   
   
   ### Language / Project Type / NetBeans Component
   
   java editor
   
   ### How to reproduce
   
   make class as above with inner record and apply refactoring  Move Inner to.
   The resulting class is no longer a record, the record component parameters 
including parenthesis are dropped,
   but the import (LocalDate) is handed over, but is useless because of the 
stripping.
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   ubuntu 22.04, Windows 11
   
   ### JDK
   
   java 21, Java 17 at least
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   occurs always.
   
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to