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

ASF GitHub Bot commented on DRILL-7153:
---------------------------------------

cgivre commented on pull request #1731: DRILL-7153: Drill Fails to Build using 
JDK 1.8.0_65
URL: https://github.com/apache/drill/pull/1731#discussion_r271856630
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/FilterEvaluatorUtils.java
 ##########
 @@ -54,9 +54,12 @@
   private FilterEvaluatorUtils() {
   }
 
+  @SuppressWarnings("unchecked")
   public static RowsMatch evalFilter(LogicalExpression expr, 
MetadataBase.ParquetTableMetadataBase footer,
                                      int rowGroupIndex, OptionManager options, 
FragmentContext fragmentContext) {
-    List<SchemaPath> schemaPathsInExpr = new ArrayList<>(expr.accept(new 
FieldReferenceFinder(), null));
+    //This change is necessary to prevent build errors on JDK 1.8.0_65.  See 
(https://bugs.openjdk.java.net/browse/JDK-8066974)
+    List<SchemaPath> schemaPathsInExpr = new ArrayList<>(expr.<Set<SchemaPath>,
+            Void, RuntimeException>accept(new FieldReferenceFinder(), null));
 
 Review comment:
   Done and commits squashed.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Drill Fails to Build using JDK 1.8.0_65
> ---------------------------------------
>
>                 Key: DRILL-7153
>                 URL: https://issues.apache.org/jira/browse/DRILL-7153
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.16.0
>            Reporter: Charles Givre
>            Assignee: Charles Givre
>            Priority: Blocker
>             Fix For: 1.16.0
>
>
> Drill fails to build when using Java 1.8.0_65.  Throws the following error:
> [{{ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile 
> (default-compile) on project drill-java-exec: Compilation failure
> [ERROR] 
> /Users/cgivre/github/drill-dev/drill/exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/FilterEvaluatorUtils.java:[59,68]
>  error: unreported exception E; must be caught or declared to be thrown
> [ERROR]   where E,T,V are type-variables:
> [ERROR]     E extends Exception declared in method 
> <T,V,E>accept(ExprVisitor<T,V,E>,V)
> [ERROR]     T extends Object declared in method 
> <T,V,E>accept(ExprVisitor<T,V,E>,V)
> [ERROR]     V extends Object declared in method 
> <T,V,E>accept(ExprVisitor<T,V,E>,V)
> [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 <goals> -rf :drill-java-exec}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to