[
https://issues.apache.org/jira/browse/CALCITE-2027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16329485#comment-16329485
]
Julian Hyde commented on CALCITE-2027:
--------------------------------------
[~michaelmior], I get an error {noformat}[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile)
on project calcite-mongodb: Compilation failure
[ERROR]
/Users/jhyde/open1/calcite.3/mongodb/src/main/java/org/apache/calcite/adapter/mongodb/MongoEnumerator.java:[123,25]
incompatible types: bad type in conditional expression
[ERROR] bad type in conditional expression
[ERROR]
org.apache.calcite.linq4j.function.Function1<org.bson.Document,java.lang.Object[]>
cannot be converted to
org.apache.calcite.linq4j.function.Function1<org.bson.Document,java.lang.Object>
[ERROR]
[ERROR] -> [Help 1]
{noformat} and it might be caused by your change
[e9a3ab2|https://github.com/apache/calcite/commit/e9a3ab2c97d3c3d972f5ef7baca77ce74e4d0451].
> Drop support for Java 7 (JDK 1.7)
> ---------------------------------
>
> Key: CALCITE-2027
> URL: https://issues.apache.org/jira/browse/CALCITE-2027
> Project: Calcite
> Issue Type: Bug
> Reporter: Julian Hyde
> Assignee: Julian Hyde
> Priority: Trivial
> Fix For: 1.16.0
>
>
> Drop support for Java 7 (also known as JDK 1.7):
> * The code would no longer compile under JDK 7
> * Compiler would have source 1.8 target 1.8
> * Class files would run on JDK 8 and higher
> * Developers can use Java 8 syntax such as lambdas and default methods
> We would continue to build and run under JDK 8 and 9.
> I think it would be best to wait a while before converting existing code to
> Java 8 style (e.g. converting SAM anonymous classes to lambdas) because code
> changes might be extensive.
> I expect there will be cases that we want to change interfaces so that they
> are easier to use as lambdas. Let's make those changes cautiously when we
> come across them, and mark existing interfaces and methods deprecated until
> we remove them in 2.0.
> Let's give at least one release notice of this change. In 1.15 (the next
> release) let's announce that this will be the last release that supports Java
> 7. So this will be fixed for 1.16.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)