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

Summary: IllegalStateException: option --add-exports not allowed with target 1.1
Product: java Reporter: Martin Balin <mbalin>
Component: SourceAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: normal CC: java1cprog, jnk, tjquinn
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 228643
Attachments: stacktrace
stacktrace
stacktrace

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.