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.

Bug 271343

Summary: Incorrect brace position for module-info.java
Product: editor Reporter: _ gtzabari <gtzabari>
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal Keywords: JDK_9
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:

Description _ gtzabari 2017-08-22 03:29:52 UTC
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.
Comment 1 Dusan Balek 2017-08-25 13:44:40 UTC
Fixed in jet-main. Option added for module declaration braces.

http://hg.netbeans.org/jet-main/rev/2a1b06d8f5c1
Comment 2 Quality Engineering 2017-08-27 02:49:59 UTC
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.