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 - Incorrect brace position for module-info.java
Summary: Incorrect brace position for module-info.java
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: Dev
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: JDK_9
Depends on:
Blocks:
 
Reported: 2017-08-22 03:29 UTC by _ gtzabari
Modified: 2017-08-27 02:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.