We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
3.3.0
//> using dep com.google.code.gson:gson:2.10.1 //> using scala 3.3.0 import com.google.gson.Gson import scala.jdk.CollectionConverters._ case class HasArray( argIndices: java.util.List[Integer] ) object Main { def main(args: Array[String]): Unit = { val gson = new Gson(); val arr = gson.fromJson[HasArray]("{ \"argIndices\" : [1,2,3]}", classOf[HasArray]) println(arr.argIndices) } }
[1.0, 2.0, 3.0]
the elements in the list are actually Doubles.
[1, 2, 3]
This worked ok in the previous Scala versions 2.13.x.
The text was updated successfully, but these errors were encountered:
fixed in 3.4.0, but 3.3.6-RC1-bin-20250128-c189755-NIGHTLY still shows the old behavior
I did not attempt to identify the responsible PR
Sorry, something went wrong.
@SethTisue fixed by #19207 which could be backport-nominated
Kordyjan
No branches or pull requests
Compiler version
3.3.0
Minimized code
Output
the elements in the list are actually Doubles.
Expectation
This worked ok in the previous Scala versions 2.13.x.
The text was updated successfully, but these errors were encountered: