-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Get generic signature of fields entered after erasure from their accessor #19207
Conversation
val tpe = classOf[Foo].getDeclaredField("generic").getGenericType() | ||
val tpe2 = classOf[Foo].getDeclaredMethod("generic").getGenericReturnType() | ||
assert(tpe == tpe2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test will still pass if both the field and getter have broken signatures. We should also actually test the structure of tpe
.
LGTM. Would you mind squashing all the commits in a single one? The individual commits here don't bring any value for the future user of |
@EugeneFlesselle: as you are rebasing, you can add @entangled90 and @AnotherMedo as co-authors. |
Co-authored-by: Carlo Sana <sana.carlo@gmail.com> Co-authored-by: Matt Bovel <matthieu@bovel.net>
cfa242e
to
dad90f4
Compare
@sjrd thank-you for encouraging squashing, as it improved my bisecting experience. I suggested on the linked ticket that this might be backportable but I haven't tried it. Maybe I can just try it. (Edit: cherry-pick on |
Did somebody think it would be hard to backport? Or was it considered unwise to mess with generic signatures in a point release? |
\cc @hamzaremmal might be informed regarding this |
Fix #17069
@mbovel