[
https://issues.apache.org/jira/browse/JCLOUDS-752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14168781#comment-14168781
]
Andrew Gaul commented on JCLOUDS-752:
-------------------------------------
I experience these symptoms with 1.8.0_20:
{noformat}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on
project jclouds-resources: Execution default-compile of goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile failed: Plugin
org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies
could not be resolved: Failure to find
com.google.errorprone:error_prone_jdk8:jar:1.1.2 in
https://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has
elapsed or updates are forced -> [Help 1]
{noformat}
Several upstream bugs report incompatibility with Java 8:
https://code.google.com/p/error-prone/issues/detail?id=246
https://code.google.com/p/error-prone/issues/detail?id=251
> 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)