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

Krisztian Szucs updated ARROW-9000:
-----------------------------------
    Fix Version/s: 1.0.0

> [Java] build crashes with JDK14
> -------------------------------
>
>                 Key: ARROW-9000
>                 URL: https://issues.apache.org/jira/browse/ARROW-9000
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java
>            Reporter: Laurent Goujon
>            Assignee: Laurent Goujon
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Current master tree does not build with JDK14. The issue seems to be caused 
> by error prone plugin:
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.6.2:compile 
> (default-compile) on project arrow-memory: Compilation failure
> [ERROR] 
> /Users/laurent/devel/arrow/java/memory/src/main/java/org/apache/arrow/memory/BufferLedger.java:[545,15]
>  error: An unhandled exception was thrown by the Error Prone static analysis 
> plugin.
> [ERROR]      Please report this at 
> https://github.com/google/error-prone/issues/new and include the following:
> [ERROR]   
> [ERROR]      error-prone version: 2.3.3
> [ERROR]      BugPattern: TypeParameterUnusedInFormals
> [ERROR]      Stack Trace:
> [ERROR]      java.lang.NoSuchFieldError: bound
> [ERROR]       at 
> com.google.errorprone.bugpatterns.TypeParameterUnusedInFormals.matchMethod(TypeParameterUnusedInFormals.java:71)
> [ERROR]       at 
> com.google.errorprone.scanner.ErrorProneScanner.processMatchers(ErrorProneScanner.java:433)
> [ERROR]       at 
> com.google.errorprone.scanner.ErrorProneScanner.visitMethod(ErrorProneScanner.java:725)
> [ERROR]       at 
> com.google.errorprone.scanner.ErrorProneScanner.visitMethod(ErrorProneScanner.java:150)
> [ERROR]       at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:916)
> [ERROR]       at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
> [ERROR]       at com.google.errorprone.scanner.Scanner.scan(Scanner.java:71)
> [ERROR]       at com.google.errorprone.scanner.Scanner.scan(Scanner.java:45)
> [ERROR]       at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90)
> [ERROR]       at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
> [ERROR]       at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
> [ERROR]       at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:187)
> [ERROR]       at 
> com.google.errorprone.scanner.ErrorProneScanner.visitClass(ErrorProneScanner.java:535)
> [ERROR]       at 
> com.google.errorprone.scanner.ErrorProneScanner.visitClass(ErrorProneScanner.java:150)
> [ERROR]       at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:823)
> [ERROR]       at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
> [ERROR]       at com.google.errorprone.scanner.Scanner.scan(Scanner.java:71)
> [ERROR]       at com.google.errorprone.scanner.Scanner.scan(Scanner.java:45)
> [ERROR]       at 
> jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
> [ERROR]       at 
> jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113)
> [ERROR]       at 
> jdk.compiler/com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144)
> [ERROR]       at 
> com.google.errorprone.scanner.ErrorProneScanner.visitCompilationUnit(ErrorProneScanner.java:546)
> [ERROR]       at 
> com.google.errorprone.scanner.ErrorProneScanner.visitCompilationUnit(ErrorProneScanner.java:150)
> [ERROR]       at 
> jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:603)
> [ERROR]       at 
> jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56)
> [ERROR]       at com.google.errorprone.scanner.Scanner.scan(Scanner.java:55)
> [ERROR]       at 
> com.google.errorprone.scanner.ErrorProneScannerTransformer.apply(ErrorProneScannerTransformer.java:43)
> [ERROR]       at 
> com.google.errorprone.ErrorProneAnalyzer.finished(ErrorProneAnalyzer.java:151)
> [ERROR]       at 
> jdk.compiler/com.sun.tools.javac.api.MultiTaskListener.finished(MultiTaskListener.java:132)
> [ERROR]       at 
> jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1423)
> [ERROR]       at 
> jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1370)
> [ERROR]       at 
> jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:959)
> [ERROR]       at 
> jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:316)
> [ERROR]       at 
> jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:176)
> [ERROR]       at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
> [ERROR]       at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:43)
> [ERROR] 
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn <args> -rf :arrow-memory
> {noformat}
> Latest version of errorprone is compatible with JDK14 so it should be as 
> simple as upgrading the plugin version



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

Reply via email to