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 - Java application with JDK 8 features do not work when Netbeans is started with IBM JDK
Summary: Java application with JDK 8 features do not work when Netbeans is started wit...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-08 21:31 UTC by Mrugendra
Modified: 2016-11-08 21:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netbeans log with IBM JDK (102.79 KB, text/plain)
2016-11-08 21:31 UTC, Mrugendra
Details
Netbeans log with ORACLE Java (65.19 KB, text/plain)
2016-11-08 21:34 UTC, Mrugendra
Details

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