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 268896

Summary: Java application with JDK 8 features do not work when Netbeans is started with IBM JDK
Product: java Reporter: Mrugendra
Component: PlatformAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: Netbeans log with IBM JDK
Netbeans log with ORACLE Java

Description Mrugendra 2016-11-08 21:31:36 UTC
Created attachment 162830 [details]
Netbeans log with IBM JDK

I created a simple Java application with lambda expression in it.
When running netbeans with IBM JavaSDK8.0, it throws a NullPointerException while parsing the lambda expression at at org.netbeans.modules.java.source.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:303)
Please see attached file message.log_IBM
After the exception the program fails to execute with an error cannot find class with the main()
Also Project properties->Run->Main Classes does not show the main class

While running with Oracle Java, this exception does not occur.

Here is the IBM JDK Details
java version "1.8.0"
Java(TM) SE Runtime Environment (build pwa6480sr3fp20-20161019_02(SR3 FP20))
IBM J9 VM (build 2.8, JRE 1.8.0 Windows 8.1 amd64-64 Compressed References 20161013_322271 (JIT enabled, AOT enabled)
J9VM - R28_Java8_SR3_20161013_1635_B322271
JIT  - tr.r14.java.green_20161011_125790
GC   - R28_Java8_SR3_20161013_1635_B322271_CMPRSS
J9CL - 20161013_322271)
JCL - 20161018_01 based on Oracle jdk8u111-b14
Comment 1 Mrugendra 2016-11-08 21:34:31 UTC
Created attachment 162831 [details]
Netbeans log with ORACLE Java