[GRADLE-2081] warning emitted when compiling using openjdk 7 Created: 04/Feb/12 Updated: 04/Jan/13 Resolved: 13/Feb/12
|Reporter:||Adam Murdoch||Assignee:||René Gröschke (Inactive)|
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
|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.