Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation Warning for extract with Scala 3 #982

Open
kwalcock opened this issue Jan 14, 2022 · 2 comments
Open

Deprecation Warning for extract with Scala 3 #982

kwalcock opened this issue Jan 14, 2022 · 2 comments

Comments

@kwalcock
Copy link

json4s version 4.0.3, 4.1.0-M1

scala version 3.1.0

jdk version 1.8.0_181

What can be done about these warnings that appear for any use of extract?

[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
@awwsmm
Copy link

awwsmm commented Aug 12, 2022

Seeing the same with json4s-native 4.0.5, Scala 3.1.3, and Java 17.0.3-zulu

@chitralverma
Copy link

chitralverma commented Jan 21, 2023

any workaround for this ?

CC @xuwei-k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants