You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behaviour: the test fails with an exception.
class java.lang.String cannot be cast to class scala.collection.immutable.Seq (java.lang.String is in module java.base of loader 'bootstrap'; scala.collection.immutable.Seq is in unnamed module of loader 'app')
java.lang.ClassCastException: class java.lang.String cannot be cast to class scala.collection.immutable.Seq (java.lang.String is in module java.base of loader 'bootstrap'; scala.collection.immutable.Seq is in unnamed module of loader 'app')
at com.softwaremill.diffx.Diff.com$softwaremill$diffx$Diff$$$anonfun$contramap$1(Diff.scala:12)
at com.softwaremill.diffx.Diff$$anonfun$contramap$2.apply(Diff.scala:11)
at com.softwaremill.diffx.generic.DiffMagnoliaDerivation.$anonfun$join$3(DiffMagnoliaDerivation.scala:22)
at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:75)
at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:35)
at com.softwaremill.diffx.generic.DiffMagnoliaDerivation.$anonfun$join$2(DiffMagnoliaDerivation.scala:13)
at com.softwaremill.diffx.DiffxSupport.nullGuard(DiffxSupport.scala:20)
at com.softwaremill.diffx.DiffxSupport.nullGuard$(DiffxSupport.scala:14)
at com.softwaremill.diffx.package$.nullGuard(package.scala:7)
at com.softwaremill.diffx.generic.DiffMagnoliaDerivation.com$softwaremill$diffx$generic$DiffMagnoliaDerivation$$$anonfun$join$1(DiffMagnoliaDerivation.scala:12)
at com.softwaremill.diffx.generic.DiffMagnoliaDerivation$$anonfun$join$7.apply(DiffMagnoliaDerivation.scala:11)
at com.softwaremill.diffx.instances.DiffForSet.$anonfun$matchPairs$1(DiffForSet.scala:45)
at scala.collection.immutable.List.map(List.scala:246)
at com.softwaremill.diffx.instances.DiffForSet.matchPairs(DiffForSet.scala:43)
at com.softwaremill.diffx.instances.DiffForSet.$anonfun$apply$1(DiffForSet.scala:23)
at com.softwaremill.diffx.DiffxSupport.nullGuard(DiffxSupport.scala:20)
at com.softwaremill.diffx.DiffxSupport.nullGuard$(DiffxSupport.scala:14)
at com.softwaremill.diffx.package$.nullGuard(package.scala:7)
at com.softwaremill.diffx.instances.DiffForSet.apply(DiffForSet.scala:16)
at com.softwaremill.diffx.Diff.com$softwaremill$diffx$Diff$$$anonfun$contramap$1(Diff.scala:12)
at com.softwaremill.diffx.Diff$$anonfun$contramap$2.apply(Diff.scala:11)
at com.softwaremill.diffx.generic.DiffMagnoliaDerivation.$anonfun$join$3(DiffMagnoliaDerivation.scala:22)
at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:75)
at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:35)
at com.softwaremill.diffx.generic.DiffMagnoliaDerivation.$anonfun$join$2(DiffMagnoliaDerivation.scala:13)
at com.softwaremill.diffx.DiffxSupport.nullGuard(DiffxSupport.scala:20)
at com.softwaremill.diffx.DiffxSupport.nullGuard$(DiffxSupport.scala:14)
at com.softwaremill.diffx.package$.nullGuard(package.scala:7)
at com.softwaremill.diffx.generic.DiffMagnoliaDerivation.com$softwaremill$diffx$generic$DiffMagnoliaDerivation$$$anonfun$join$1(DiffMagnoliaDerivation.scala:12)
at com.softwaremill.diffx.generic.DiffMagnoliaDerivation$$anonfun$join$7.apply(DiffMagnoliaDerivation.scala:11)
at com.softwaremill.diffx.Diff$$anon$1.apply(Diff.scala:22)
at com.softwaremill.diffx.Diff.apply(Diff.scala:7)
at com.softwaremill.diffx.Diff.apply$(Diff.scala:7)
at com.softwaremill.diffx.Diff$$anon$1.apply(Diff.scala:16)
diffx version: 0.8.0
This seems to be specific for modify only. Defining the collection Diff inside Bar like:
I have a pretty basic case that fails with a
ClassCastException
:Expected behaviour: the test passes.
Actual behaviour: the test fails with an exception.
diffx version: 0.8.0
This seems to be specific for
modify
only. Defining the collectionDiff
insideBar
like:doesn't cause any exceptions.
The text was updated successfully, but these errors were encountered: