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

   ### Apache NetBeans version
   
   Apache NetBeans 28
   
   ### What happened
   
   When having configured brace placement for class declarations to "New Line", 
invoking Source > Format on a record class declaration incorrectly indents the 
opening brace.
   
   ### Language / Project Type / NetBeans Component
   
   Java, Editor
   
   ### How to reproduce
   
   In Options > Editor > Formatting > Java > Braces > Braces Placement, set 
Class Declaration to New Line. Then invoke Source > Format on the following 
code:
   ```java
   record ExampleRecord(int a, int b) { }
   ```
   The result is:
   ```java
   record ExampleRecord(int a, int b)
       {
   }
   ```
   The opening brace is incorrectly indented by one level.
   
   The expected correct result would be:
   ```java
   record ExampleRecord(int a, int b)
       {
   }
   ```
   
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows
   
   ### JDK
   
   JDK 21
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### 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