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

ASF subversion and git services commented on KUDU-3239:
-------------------------------------------------------

Commit f396e485089f43c925ccbd41efe951b2ad5187b9 in kudu's branch 
refs/heads/branch-1.14.x from Grant Henke
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=f396e48 ]

KUDU-3239: [build] Disable errorprone on Java 11

It turns out that errorprone is not working with Java 11. This patch
disables it until we can upgrade/update the errorprone plugin to
work on with Java 11.

Change-Id: Ic13f771222e67ac754f464f8015caf0a4901831d
Reviewed-on: http://gerrit.cloudera.org:8080/16983
Reviewed-by: Bankim Bhavsar <ban...@cloudera.com>
Reviewed-by: Hao Hao <hao....@cloudera.com>
Reviewed-by: Alexey Serbin <aser...@cloudera.com>
Tested-by: Kudu Jenkins
(cherry picked from commit 922ab9e7d46f683a5e04b4e36b1af9b95e96e025)
Reviewed-on: http://gerrit.cloudera.org:8080/16986
Tested-by: Grant Henke <granthe...@apache.org>


> Compilation failure due to TypeParameterUnusedInFormals
> -------------------------------------------------------
>
>                 Key: KUDU-3239
>                 URL: https://issues.apache.org/jira/browse/KUDU-3239
>             Project: Kudu
>          Issue Type: Task
>          Components: build
>    Affects Versions: 1.14.0
>            Reporter: Bankim Bhavsar
>            Priority: Major
>
> Compilation failures noted while Kudu building on Ubuntu 18.04.
> It's coming from Google's ErrorProne static checker.
> {noformat}
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> /home/bankim/src/rckudu/kudu/java/kudu-client/src/main/java/org/apache/kudu/client/KuduClient.java:466:
>  error: An unhandled exception was thrown by the Error Prone static analysis 
> plugin.
>   static <R> R joinAndHandleException(Deferred<R> deferred) throws 
> KuduException {
>                ^
>      Please report this at https://github.com/google/error-prone/issues/new 
> and include the following:
>   
>      error-prone version: 2.3.3
>      BugPattern: TypeParameterUnusedInFormals
>      Stack Trace:
>      java.lang.NoSuchFieldError: bound
>       at 
> com.google.errorprone.bugpatterns.TypeParameterUnusedInFormals.matchMethod(TypeParameterUnusedInFormals.java:71)
>       at 
> com.google.errorprone.scanner.ErrorProneScanner.processMatchers(ErrorProneScanner.java:433)
>       at 
> com.google.errorprone.scanner.ErrorProneScanner.visitMethod(ErrorProneScanner.java:725)
>       at 
> com.google.errorprone.scanner.ErrorProneScanner.visitMethod(ErrorProneScanner.java:150)
>       at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
>       at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
> {noformat}
> {noformat}
> src/kudu/hms/CMakeFiles/hms_plugin_jar.dir/build.make:79: recipe for target 
> 'bin/hms-plugin.jar' failed
> make[2]: *** [bin/hms-plugin.jar] Error 1
> CMakeFiles/Makefile2:7710: recipe for target 
> 'src/kudu/hms/CMakeFiles/hms_plugin_jar.dir/all' failed
> make[1]: *** [src/kudu/hms/CMakeFiles/hms_plugin_jar.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> /home/bankim/src/rckudu/kudu/java/kudu-subprocess/src/main/java/org/apache/kudu/subprocess/QueueUtil.java:33:
>  error: An unhandled exception was thrown by the Error Prone static analysis 
> plugin.
>   static <DataT> DataT take(BlockingQueue<DataT> queue) {
>                        ^
>      Please report this at https://github.com/google/error-prone/issues/new 
> and include the following:
>   
>      error-prone version: 2.3.3
>      BugPattern: TypeParameterUnusedInFormals
>      Stack Trace:
>      java.lang.NoSuchFieldError: bound
>       at 
> com.google.errorprone.bugpatterns.TypeParameterUnusedInFormals.matchMethod(TypeParameterUnusedInFormals.java:71)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to