[GRADLE-2081] warning emitted when compiling using openjdk 7 Created: 04/Feb/12 Updated: 04/Jan/13 Resolved: 13/Feb/12 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 1.0-milestone-9 |
Type: | Bug | ||
Reporter: | Adam Murdoch | Assignee: | René Gröschke (Inactive) |
Resolution: | Fixed | Votes: | 0 |
Description |
This warning is displayed when using the default compile options with openjdk 7: [ant:javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5 |
Comments |
Comment by René Gröschke (Inactive) [ 06/Feb/12 ] |
I am not quite sure what the best way to go. According to http://blogs.oracle.com/darcy/entry/bootclasspath_older_source the clean way to avoid this warning is to set the bootclasspath to the rt.jar (or equivalent) of the older platform. Another way to get rid of this warning is use a new sub option of -Xlint: -Xlint:-options. IMO Gradle should print this warning as it currently does and avoid any default bootclasspath and/or -Xlint values, which is intransparent for any user. |