This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE Dev (Build 201708210001) Java: 9; Java HotSpot(TM) 64-Bit Server VM 9+181 Runtime: Java(TM) SE Runtime Environment 9+181 System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb) User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev 1. Netbeans is configured to place braces on new lines. 2. Given: module requirements.core { requires diff.match.patch; requires slf4j.api; requires pouch; } 3. Code-format does not move the opening brace to a new line. If the brace is manually moved to a new line, code-format moves it back to the wrong position.
Fixed in jet-main. Option added for module declaration braces. http://hg.netbeans.org/jet-main/rev/2a1b06d8f5c1
Integrated into 'main-silver', will be available in build *201708270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2a1b06d8f5c1 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #271343 - Incorrect brace position for module-info.java - fixed.