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 249492 - Java Sources classpath java platform selection other than default is not respected
Summary: Java Sources classpath java platform selection other than default is not resp...
Status: NEW
Alias: None
Product: qa
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-22 19:19 UTC by amohammed
Modified: 2014-12-22 19:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Java Platform Selected To 1.6 (56.62 KB, image/png)
2014-12-22 19:19 UTC, amohammed
Details

Note You need to log in before you can comment on or make changes to this bug.
Description amohammed 2014-12-22 19:19:28 UTC
Created attachment 151246 [details]
Java Platform Selected To 1.6

Overview:
The project that I am working on, is a java free form project and Ant is used to build the src.

I set the Java Sources classpath java platform to 1.6 and build the src using Ant.
Build fails as the java platform is pointing to default 1.8

Actual Results:
I get below warnings while trying to build the src with Ant and build fails due to 1.8 java platform instead of 1.6.

warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
java version: 1.8

warning: [options] bootstrap class path not set in conjunction with -source 1.6

Expected Results:
Should have respected the java platform setting of 1.6 and build the src without errors.

Build Date & Hardware:
Issue observed on 8.0, 8.0.1 and 8.0.2 versions.

Additional Builds and Platforms:
Issue was not observed on 7.3 and earlier versions.