You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tz...@apache.org on 2019/02/14 18:15:46 UTC

[flink] 02/02: [hotfix] [scala, tests] Fix failing ScalaCaseClassSerializerSnapshotMigrationTest in Scala 2.12

This is an automated email from the ASF dual-hosted git repository.

tzulitai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 29d62b0c79b4fcd0195f99271d35550485dea390
Author: Tzu-Li (Gordon) Tai <tz...@apache.org>
AuthorDate: Fri Feb 15 02:12:26 2019 +0800

    [hotfix] [scala, tests] Fix failing ScalaCaseClassSerializerSnapshotMigrationTest in Scala 2.12
    
    The ScalaCaseClassSerializerSnapshotMigrationTest was failing because
    of a serial version UID mismatch for the test data type CustomCaseClass.
    Scala 2.12 generates different default serial version UIDs compared to
    Scala 2.11.
    
    This commit explicitly sets the serial version UID for that test data
    type, so that the migration test is agnostic to the Scala version being
    used.
---
 .../scala/org/apache/flink/api/scala/types/TypeInformationGenTest.scala  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/flink-scala/src/test/scala/org/apache/flink/api/scala/types/TypeInformationGenTest.scala b/flink-scala/src/test/scala/org/apache/flink/api/scala/types/TypeInformationGenTest.scala
index 7d13bba..e68013f 100644
--- a/flink-scala/src/test/scala/org/apache/flink/api/scala/types/TypeInformationGenTest.scala
+++ b/flink-scala/src/test/scala/org/apache/flink/api/scala/types/TypeInformationGenTest.scala
@@ -27,6 +27,7 @@ import org.apache.flink.types.{IntValue, StringValue}
 
 import org.junit.{Assert, Test}
 
+@SerialVersionUID(-1509730037212683566L)
 case class CustomCaseClass(a: String, b: Int)
 
 case class UmlautCaseClass(ä: String, ß: Int)