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 270384 - Creating a module-info with the wizard for a non existent requires clause
Summary: Creating a module-info with the wizard for a non existent requires clause
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: Dev
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-12 21:07 UTC by lhochet
Modified: 2017-04-26 21:40 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 lhochet 2017-04-12 21:07:20 UTC
Create a new Java Maven project (artifact id mavenproject5) using the wizard, 
(add a main class,)
then use the module-info wizard to add one, this creates the following file (header comment excluded):

module Mavenproject5 {
  requires mavenproject;
}

The requires shouldn't be there.
Comment 1 lhochet 2017-04-12 21:10:02 UTC
Build info:
Product Version: NetBeans IDE Dev (Build 20170412-306a73dbfd00)
Java: 9-internal; OpenJDK 64-Bit Server VM 9-internal+0-adhoc.Ludovic.jdk9
Runtime: OpenJDK Runtime Environment 9-internal+0-adhoc.Ludovic.jdk9
System: Windows 10 version 10.0 running on amd64; Cp1252; fr_FR (nb)
Comment 2 Tomas Stupka 2017-04-24 10:04:35 UTC
could not reproduce with build 20170424

feel free to reopen in case this still occurs with an actual build

thanks
Comment 3 lhochet 2017-04-26 21:40:08 UTC
seems it was fixed somehow, a new build just now no longer shows the behaviour