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 270284

Summary: NullPointerException at com.sun.tools.javac.jvm.ClassWriter.writeModuleAttribute
Product: java Reporter: jnk <jnk>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: Alrazihi, java1cprog
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 228611
Attachments: stacktrace

Description jnk 2017-04-03 20:34:26 UTC
Build: NetBeans IDE Dev (Build 20170401-67179ad81f49)
VM: OpenJDK 64-Bit Server VM, 9-internal+0-adhoc.MyMacBook.jdk9, OpenJDK Runtime Environment, 9-internal+0-adhoc.MyMacBook.jdk9
OS: Mac OS X

User Comments:
GUEST: Tried to rename a module

jnk: Pasted source packages of a standalone Java 9 module inside classes of a Modular project.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.jvm.ClassWriter.writeModuleAttribute(ClassWriter.java:1067)
   at com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1881)
   at com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1743)
   at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:768)
   at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1717)
   at com.sun.tools.javac.api.JavacTaskImpl$2.process(JavacTaskImpl.java:562)
Comment 1 jnk 2017-04-03 20:34:29 UTC
Created attachment 164012 [details]
stacktrace
Comment 2 Exceptions Reporter 2017-08-01 10:31:54 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228611