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 - NullPointerException at com.sun.tools.javac.jvm.ClassWriter.writeModuleAttribute
Summary: NullPointerException at com.sun.tools.javac.jvm.ClassWriter.writeModuleAttribute
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-03 20:34 UTC by jnk
Modified: 2017-09-24 16:23 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 228611


Attachments
stacktrace (4.45 KB, text/plain)
2017-04-03 20:34 UTC, jnk
Details

Note You need to log in before you can comment on or make changes to this bug.
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