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 226422 - Warning messages compiling Groovy project if JDK is not "JDK 1.7 (Default)".
Summary: Warning messages compiling Groovy project if JDK is not "JDK 1.7 (Default)".
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-20 20:19 UTC by MackSix
Modified: 2013-07-31 08:17 UTC (History)
0 users

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 MackSix 2013-02-20 20:19:26 UTC
1. Add JDK 1.7.0_13 to JDK Platforms in Netbeans so that you have 2 JDK 1.7.0_13 entries. One is "JDK 1.7 (Default)" and the other will be "JDK 1.7".
2. Open up a simple Groovy project with "JDK 1.7 (Default)" as the Java Platform and Clean & Build. Everything looks normal.
3. Change the Java Platform for the project in Project Properties>>Libraries>>Java Platform to "JDK 1.7". 
4. Clean & Build the Groovy project again, but this time there are three red warning messages:

The option executable cannot be set on the contained <javac> element. The option will be ignored
The option tempdir cannot be set on the contained <javac> element. The option will be ignored
The option fork cannot be set on the contained <javac> element. The option will be ignored

Expected: No warning messages because it is the same JDK 1.7.0_13.

Workaround: You must use the one named "JDK 1.7 (Default)" and if you want to use a different version of JDK you would have to edit netbeans.conf and change the default platform to the JDK version you want to use.

Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Martin Janicek 2013-07-31 08:17:26 UTC
Thanks for the report, I was able to reproduce the problem. Changing to P4, this does not seem to have high priority.