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 270179

Summary: Various missing requires statement in module-info.java when adding Forms
Product: java Reporter: Martin Balin <mbalin>
Component: ProjectAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: Dev   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 270167    
Bug Blocks:    

Description Martin Balin 2017-03-23 12:41:56 UTC
Using NB daily from 20170323, running on JDK8, Multimodule project and JavaSE Project platform is JDK9 EA b158, source level JDK9.

Add Form into module under MM Project
module-info.java is updated with requires swing.layout
following modules should be also automatically added as they are required by Form templates:
1. java.desktop
2. java.logging
Comment 1 Svata Dedic 2017-03-23 12:53:19 UTC
Sample decorator implementation in issue #270167 actually solves this bug; waiting for API review.
Comment 2 Svata Dedic 2017-03-31 11:09:24 UTC
Fixed in jet-main#4afe19221888
Comment 3 Quality Engineering 2017-04-02 02:38:17 UTC
Integrated into 'main-silver', will be available in build *201704020002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e06dc7f650ee
User: Svata Dedic <sdedic@netbeans.org>
Log: #270179: required modules automatically declared when creating from template