You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2014/09/15 16:35:33 UTC

[jira] [Resolved] (SPARK-3470) Have JavaSparkContext implement Closeable/AutoCloseable

     [ https://issues.apache.org/jira/browse/SPARK-3470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved SPARK-3470.
------------------------------
       Resolution: Fixed
    Fix Version/s: 1.2.0

> Have JavaSparkContext implement Closeable/AutoCloseable
> -------------------------------------------------------
>
>                 Key: SPARK-3470
>                 URL: https://issues.apache.org/jira/browse/SPARK-3470
>             Project: Spark
>          Issue Type: New Feature
>          Components: Spark Core
>    Affects Versions: 1.0.2
>            Reporter: Shay Rojansky
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> After discussion in SPARK-2972, it seems like a good idea to allow Java developers to use Java 7 automatic resource management with JavaSparkContext, like so:
> {code:java}
> try (JavaSparkContext ctx = new JavaSparkContext(...)) {
>    return br.readLine();
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org