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 241577 - Editor not using project JDK to point out compilation errors
Summary: Editor not using project JDK to point out compilation errors
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-08 17:21 UTC by ionuion
Modified: 2014-02-17 12:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (17.71 KB, application/zip)
2014-02-08 17:21 UTC, ionuion
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ionuion 2014-02-08 17:21:10 UTC
Created attachment 144944 [details]
sample project

Environment:
Product Version: NetBeans IDE Dev (Build 201402040001)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b128
System: Mac OS X version 10.9.1 running on x86_64; UTF-8; en_US (nb)

Steps to reproduce:
1. Configure NetBeans to use JDK8 in netbeans.conf
2. Open project which is set up to use JDK6 (project in zip attached)
3. Open file JavaApplication3 in editor

Line 10 contains an error in JDK6, which is not an error in JDK7 and above anymore

Expected result:
The java editor points out compilation errors that would be triggered at compilation (line 10 in the file mentioned above)

Actual result:
The editor does not notify the user. The user only finds out upon compilation.
Comment 1 Dusan Balek 2014-02-17 12:07:49 UTC
As you have said - your example is compilable when using JDK7 javac compiler
and it is not compilable when using JDK6 javac. Since the NB 8.0
editor uses JDK8 javac for its internal compilation, no errors are reported.

Sorry - closing as WONTFIX.