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 242498 - Can't set source level to 1.8
Summary: Can't set source level to 1.8
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords: 8.0_HR_FIX
Depends on:
Blocks:
 
Reported: 2014-03-02 23:29 UTC by pjdm
Modified: 2014-03-04 07:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pjdm 2014-03-02 23:29:16 UTC
A NetBeans Module project cannot have its source level set to 1.8 at Properties -> Sources -> Source Level.

A workaround is to manually set javac.source=1.8 in <project>/nbproject/project.properties, but this displays in the Source Level drop-down as "1.4".

Furthermore, if a change is made to the module properties (for instance changing Build -> Compiling -> Addition Compiler Options), the javac.source property is removed from project.properties, which defaults the source level to 1.4 and makes the Java8 code in the module invalid.

(Tested using 8.0 rc1.)
Comment 1 Martin Kozeny 2014-03-03 14:28:43 UTC
https://hg.netbeans.org/core-main/rev/10b08fdae4de
Comment 2 Jiri Rechtacek 2014-03-03 14:33:17 UTC
Martin, please backport it to release80. Thanks
Comment 3 Martin Kozeny 2014-03-03 15:20:22 UTC
Done
Comment 4 Quality Engineering 2014-03-04 00:56:24 UTC
Integrated into 'releases/release80', will be available in build *201403032200* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/b1e6caab9622
User: Martin Kozeny <mkozeny@netbeans.org>
Log: #242498: Can't set source level to 1.8.
Comment 5 pjdm 2014-03-04 01:04:57 UTC
Excellent, thanks (especially for getting it into the 8.0 release).
Comment 6 Quality Engineering 2014-03-04 02:56:13 UTC
Integrated into 'main-silver', will be available in build *201403040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/10b08fdae4de
User: Martin Kozeny <mkozeny@netbeans.org>
Log: #242498: Can't set source level to 1.8.