flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aljoscha Krettek (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLINK-12461) 1.8 not working with Scala 2.12.8
Date Thu, 09 May 2019 11:28:00 GMT

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

Aljoscha Krettek edited comment on FLINK-12461 at 5/9/19 11:27 AM:
-------------------------------------------------------------------

A slap in the face, from the [release notes|https://github.com/scala/scala/releases/tag/v2.12.8]:
{code:java}
The second fix is not binary compatible: the 2.12.8 compiler omits certain methods that are
generated by earlier 2.12 compilers. However, we believe that these methods are never used
and existing compiled code will continue to work. See the pull request description for more
details.{code}


was (Author: aljoscha):
A slap in the face, from the [release notes|[https://github.com/scala/scala/releases/tag/v2.12.8]]:
{code:java}
The second fix is not binary compatible: the 2.12.8 compiler omits certain methods that are
generated by earlier 2.12 compilers. However, we believe that these methods are never used
and existing compiled code will continue to work. See the pull request description for more
details.{code}

> 1.8 not working with Scala 2.12.8
> ---------------------------------
>
>                 Key: FLINK-12461
>                 URL: https://issues.apache.org/jira/browse/FLINK-12461
>             Project: Flink
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>            Reporter: Gaël Renoux
>            Priority: Major
>
> When using 1.8 with Scala 2.12.8 and trying to parse a scala.Map (not a java.util.Map),
I get a: java.lang.ClassNotFoundException: scala.math.Ordering$$anon$9
> To reproduce:
>  - start with the Scala Maven archetype (org.apache.flink:flink-quickstart-scala:1.8.0)
>  - in the POM, set the scala.version to 2.12.8 and the scala.binary.version to 2.12
>  - in StreamingJob, add: env.fromElements[Map[String, Int]]()
> It works with Scala 2.12.7 (well, without putting anything in the job, it fails with
"No operators defined in streaming topology", which is expected).
> I suspect this is linked to the binary incompatiblity of 2.12.8 with 2.12.7 (see the
release note of 2.12.8), so compiling Flink with 2.12.8 instead of 2.12.7 might be enough
(although it might stop working with 2.12.7?)



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

Mime
View raw message