[
https://issues.apache.org/jira/browse/JENA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14032511#comment-14032511
]
Kristian Rosenvold commented on JENA-714:
-----------------------------------------
You can set <source> to 1.6 and <target> to 1.7, which will make sure your next
release requires 1.7 to run, but easily allows anyone to compile to 1.6 by
toggling a switch. You should also probably have animal-sniffer
(http://mojo.codehaus.org/animal-sniffer-maven-plugin/) with a library level of
1.6, which will fail the build if stuff like File#toPath (1.7) pops up in the
code.
The warnings from eclipse were there because the language level was 1.7. As far
as I understand your community process, switching source level to 1.6 for one
or more releases is what you really want to do.
> Language level upgrade
> ----------------------
>
> Key: JENA-714
> URL: https://issues.apache.org/jira/browse/JENA-714
> Project: Apache Jena
> Issue Type: Improvement
> Reporter: Kristian Rosenvold
> Assignee: Andy Seaborne
> Attachments: languageLevel.patch
>
>
> The enclosed patch is a result of running a large number of automated
> language level upgrades available in intellij Idea (about 4000 individual
> items).
> As such, the patch contains no "manual" changes done by hand, and should be
> safe to apply, if somewhat large :)
--
This message was sent by Atlassian JIRA
(v6.2#6252)