You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Benedict (JIRA)" <ji...@apache.org> on 2015/05/20 10:48:01 UTC

[jira] [Comment Edited] (CASSANDRA-9431) Static Analysis to warn on unsafe use of Autocloseable instances

    [ https://issues.apache.org/jira/browse/CASSANDRA-9431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14551335#comment-14551335 ] 

Benedict edited comment on CASSANDRA-9431 at 5/20/15 8:47 AM:
--------------------------------------------------------------

My (out of date) experience with ecj (back in the days of -1.6 and 1.7- 1.5 (edit: I sometimes forget I'm not so young anymore) language features being introduced) was that ecj was actually always much more solid than javac on handling edge cases in the language.

However I agree that we should stick to javac for compilation, as I would not want to risk weird bytecode production, which is much more important.


was (Author: benedict):
My (out of date) experience with ecj (back in the days of 1.6 and 1.7 language features being introduced) was that ecj was actually always much more solid than javac on handling edge cases in the language.

However I agree that we should stick to javac for compilation, as I would not want to risk weird bytecode production, which is much more important.

> Static Analysis to warn on unsafe use of Autocloseable instances
> ----------------------------------------------------------------
>
>                 Key: CASSANDRA-9431
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9431
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Benedict
>            Assignee: T Jake Luciani
>             Fix For: 3.0 beta 1
>
>
> The ideal goal would be to fail the build under any unsafe (and not annotated as considered safe independently) uses of Autocloseable. It looks as though eclipse (and hence, hopefully ecj) has support for this feature, so we should investigate if it meets our requirements and we can get it integrated



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