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

Terry Wang updated FLINK-13896:
-------------------------------
    Description: 
When setting TableEnvironment in scala as follwing:

 
{code:java}
// we can repoduce this problem by put following code in 
// org.apache.flink.table.api.scala.internal.StreamTableEnvironmentImplTest

@Test
def testCreateEnvironment(): Unit = {
 val settings = 
EnvironmentSettings.newInstance().useBlinkPlanner().inBatchMode().build();
 val tEnv = TableEnvironment.create(settings);
}
{code}

Then mvn test would fail with an error message like:

 

error: Static methods in interface require -target:JVM-1.8

 

We can fix this bug by adding:

<configuration>
 <args>
 <arg>-target:jvm-1.8</arg>
 </args>
</configuration>

 

to scala-maven-plugin config

 

 

 

> Scala 2.11 maven compile should target Java 1.8
> -----------------------------------------------
>
>                 Key: FLINK-13896
>                 URL: https://issues.apache.org/jira/browse/FLINK-13896
>             Project: Flink
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: 1.9.0
>            Reporter: Terry Wang
>            Priority: Major
>
> When setting TableEnvironment in scala as follwing:
>  
> {code:java}
> // we can repoduce this problem by put following code in 
> // org.apache.flink.table.api.scala.internal.StreamTableEnvironmentImplTest
> @Test
> def testCreateEnvironment(): Unit = {
>  val settings = 
> EnvironmentSettings.newInstance().useBlinkPlanner().inBatchMode().build();
>  val tEnv = TableEnvironment.create(settings);
> }
> {code}
> Then mvn test would fail with an error message like:
>  
> error: Static methods in interface require -target:JVM-1.8
>  
> We can fix this bug by adding:
> <configuration>
>  <args>
>  <arg>-target:jvm-1.8</arg>
>  </args>
> </configuration>
>  
> to scala-maven-plugin config
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to