Closed jxnu-liguobin closed 1 month ago
I would assume that there is an issue in the Scala compiler here. Did you try to resolve the type variables using Java reflection? It would normally result in the same error.
I would assume that there is an issue in the Scala compiler here. Did you try to resolve the type variables using Java reflection? It would normally result in the same error.
Are you referring to the get method for reflecting Cache instances? But what I got was the Object
If you get hold of zio.cache.Cache$$anon$1 Class representstion, and call methods for getting generic types on it, I'd assume it yields similar exceptions.
This is Scala, since the minimum reproduction code is uncertain at this point, a guess would be something like this:
The full code is here https://github.com/zio/zio-cache/blob/series/2.x/zio-cache/shared/src/main/scala/zio/cache/Cache.scala