[
https://issues.apache.org/jira/browse/MARMOTTA-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13665485#comment-13665485
]
Peter Ansell commented on MARMOTTA-124:
---------------------------------------
If you are blocking on SES-1691 you should know that although SES-1704 was
implemented, it is not actually useable on the Oracle-7 or OpenJDK-7 JDKs due
to an error in the way the JDK process generic exceptions in try-with-resources
blocks. Oracle have put a fix for that in the list for potentially being fixed
in Java-8. There is a rather ugly workaround if you really want to do it, but
basically it is easier to keep using the try-finally-close method still for
CloseableIteration.
SES-1705 should be okay though from my experience working on the 2.8.0-SNAPSHOT
so you will be able to use try-with-resources with RepositoryConnection which
is another big improvement.
Jeen tentatively scheduled 2.8.0, which is the Java-7 release, for later this
year (around September).
The 2.8.0-SNAPSHOT is not being deployed to Sonatype yet, but feel free to
checkout the master branch and compile it locally if you want to experiment
with it. One big change that you may notice is that the tests run in parallel
so the total time to compile and test the 2.8.0-SNAPSHOT codebase is much
shorter than for previous versions.
Overall though you should be fine to upgrade to Java-7 without necessarily
blocking on SES-1691, as Java-6 code should still work on Java-7. I have been
personally using and developing Sesame using OpenJDK-7 for the past 18-24
months.
> Update to Java-7
> ----------------
>
> Key: MARMOTTA-124
> URL: https://issues.apache.org/jira/browse/MARMOTTA-124
> Project: Marmotta
> Issue Type: Improvement
> Reporter: Jakob Frank
> Priority: Blocker
> Fix For: 4.0-incubating
>
>
> Java-6 soon reaches EOL and Java-7 adds some new language features, including:
> try-with-resources blocks, which operate on implementations of the new
> java.lang.AutoCloseable interface. These can be used to avoid manual handling
> for the closing of resources where possible.
> improved File IO, using the new java.nio.file.Path interface as the basic
> object
> multi-catch exception blocks, syntactic sugar to avoid having to write
> multiple catch blocks for the same handling
> generics diamond syntax, syntactic sugar to avoid having to write generic
> types as often
> http://docs.oracle.com/javase/7/docs/technotes/guides/language/enhancements.html
> Waiting for https://openrdf.atlassian.net/browse/SES-1691
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira