-
Notifications
You must be signed in to change notification settings - Fork 1.1k
No generic signature emitted for local classes #6349
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
Comments
To work properly, `TypeReference` relies on using runtime reflection to get the generic arguments it was instantiated with, this does not work currently with Dotty, because we're not emitting a generic signature for the parent, see scala#6349.
To work properly, `TypeReference` relies on using runtime reflection to get the generic arguments it was instantiated with, this does not work currently with Dotty, because we're not emitting a generic signature for the parent, see scala#6349.
@smarter would this be a change that could be done for Scala 3 release? Without this, I'm not sure if jackson-module-scala can be made to work for Scala3. Of course, there are lots of other ways to work with JSON in scala and it could be about time to halt work on jackson-module-scala in favour of encouraging users onto alternatives. |
No promise it'll be done for Scala 3.0.0, but I'll give it a try if I can find the time. |
@smarter I'm no sure that this issue only affects local classes
This fails with same issue (java.lang.IllegalArgumentException: Internal error: TypeReference constructed without actual type information being thrown by TypeReference constructor) |
|
In particular, this is needed to implement the "super type tokens" pattern described in http://gafter.blogspot.com/2006/12/super-type-tokens.html and used for example in http://fasterxml.github.io/jackson-core/javadoc/2.9/com/fasterxml/jackson/core/type/TypeReference.html
The text was updated successfully, but these errors were encountered: