You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Adrian Cole (JIRA)" <ji...@apache.org> on 2014/10/12 22:35:33 UTC

[jira] [Comment Edited] (JCLOUDS-752) Add error-prone to the build and create bug patterns for known bugs or anti-patterns.

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

Adrian Cole edited comment on JCLOUDS-752 at 10/12/14 8:35 PM:
---------------------------------------------------------------

[~gaul] have you raised an issue on "The way it hooks into javac is apparently invasive and fragile." or do you have an issue others raised we could track? The only one I can find that you raised is this, which appears to have been marked resolved in january. https://code.google.com/p/error-prone/issues/detail?id=190

Do you have any fixes that aren't upstream?


was (Author: adriancole):
[~gaul] have you raised an issue on "The way it hooks into javac is apparently invasive and fragile." or do you have an issue others raised we could track?

> Add error-prone to the build and create bug patterns for known bugs or anti-patterns.
> -------------------------------------------------------------------------------------
>
>                 Key: JCLOUDS-752
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-752
>             Project: jclouds
>          Issue Type: Improvement
>          Components: jclouds-core
>            Reporter: Adrian Cole
>
> We have bug patterns that regularly happen due to programming mistakes
>  * Having a fallback to null, but no nullable
>  * putting fallback with mismatching return type (ex. null on boolean)
>  * forgetting to add Named (which is used for timeout config)
> ...
> There's an existing tool, which was first published to maven central in may 2012 and has had regular releases since, and contributions by several people: Error prone
> error-prone allows you to use existing bug patterns or create new ones that can help you identify bugs.
> https://code.google.com/p/error-prone/wiki/BugPatterns
> I'm aware that we already have checkstyle and modernizer in the build, and [~gaul] is apprehensive about adding this. He mentioned a preference to run it manually, and cited some concern about it not working with JDK 8 some time ago.
> Instead of finding reasons not to use this tool, or limiting its effectiveness to manual runs (which would allow new bugs to creep in), I highly encourage us to be as fair with adding this as we were with adding other tools like checkstyle and modernizer.



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