Invalid Java generic signatures for polymorphic value classes #12283
Labels
backend
erasure
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
java interop
minimized
runtime crash
valueclass
Milestone
reproduction steps
using Scala 2.13.4,
problem
When using
javap
we can observe that the generic signature of these methods (the one that javap displays first and that comes from theSignature
attribute) does not match their descriptor (which is the actual signature the JVM cares about); except for the ones I marked// correct signature
:This can only end in disaster when Java tries to call these methods:
The text was updated successfully, but these errors were encountered: