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 270760 - IllegalStateException: option --add-exports not allowed with target 1.1
Summary: IllegalStateException: option --add-exports not allowed with target 1.1
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-29 14:26 UTC by Martin Balin
Modified: 2018-04-20 21:50 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 228643


Attachments
stacktrace (5.33 KB, text/plain)
2017-05-29 14:26 UTC, Martin Balin
Details
stacktrace (4.07 KB, text/plain)
2017-12-28 13:00 UTC, Exceptions Reporter
Details
stacktrace (5.20 KB, text/plain)
2018-04-15 01:11 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Balin 2017-05-29 14:26:09 UTC
Build: NetBeans IDE Dev (Build 20170529-85afd5ac39e4)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.121-b13, Java(TM) SE Runtime Environment, 1.8.0_121-b13
OS: Linux

User Comments:
mbalin: Remove defined Java Platform which is used by one or more Java SE projects as the Java Platform.

jnk: Added module-info.java to a non modularised project using the wizard.




Stacktrace: 
java.lang.IllegalStateException: option --add-exports not allowed with target 1.1
   at com.sun.tools.javac.main.Arguments.error(Arguments.java:896)
   at com.sun.tools.javac.main.Arguments.lambda$validate$3(Arguments.java:586)
   at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
   at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
   at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
   at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
Comment 1 Martin Balin 2017-05-29 14:26:11 UTC
Created attachment 164429 [details]
stacktrace
Comment 2 Exceptions Reporter 2017-08-09 20:47:00 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228643
Comment 3 Exceptions Reporter 2017-08-09 20:49:58 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228643
Comment 4 Exceptions Reporter 2017-12-28 13:00:26 UTC
Created attachment 165598 [details]
stacktrace

open  projects
Comment 5 Exceptions Reporter 2018-04-15 01:11:50 UTC
Created attachment 165703 [details]
stacktrace

Nothing special. Some action is disallowed.