【发布时间】:2022-01-05 15:53:50
【问题描述】:
json4s 版本 4.0.3
scala 版本 3.1.0
jdk 版本 1.8.0_181
其他人都会收到这样的警告吗?有没有办法抑制或解决它们?
[warn] -- Deprecation Warning: ...\serialization\json\JSONSerializer.scala:76:51
[warn] 76 | val graphs = (json \ "graphs").extract[JObject].obj.map { case (key, json) =>
[warn] | ^
[warn] |Compiler synthesis of Manifest and OptManifest is deprecated, instead
[warn] |replace with the type `scala.reflect.ClassTag[org.json4s.JObject]`.
[warn] |Alternatively, consider using the new metaprogramming features of Scala 3,
[warn] |see https://docs.scala-lang.org/scala3/reference/metaprogramming.html
【问题讨论】:
-
请提供足够的代码,以便其他人更好地理解或重现问题。
标签: json4s