-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Introduce ProxyHints.registerJdkProxy(String...) #28781
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
I don't think we should do this. If we do, then every place that accepts a TypeReference must add a String variant, and I don't think that we should do that either as it would bloat the API quite a bit. If you don't have a class handy, then a TypeReference is the way to go. |
I had already implemented the feature and committed it before I saw your comments, so I'm reopening this issue to discuss the topic within the team.
I'd argue that There may be some particular use cases where normal users need to work with Playing devil's advocate... we don't require users to supply a As a concrete example, this issue was a requirement for #28745 to improve the developer experience. The newly introduced |
This reverses commit b560c10. See spring-projectsgh-28781
Team Decision: revert the changes made in commit b560c10 and revisit this general topic (i.e., use of |
Why is that? It's a public class with public
If that is a problem, then let's address it separately. It doesn't feel right that we focus on one of the many methods that accept either a
Because using
I don't think this method should have been designed this way. Rather, I think it should have returned a |
We're not questioning whether Rather, we are debating whether
In this regard, we are not talking about performance but rather about the developer experience and the API presented to the user for the most common use cases.
Indeed, and that's why we reverted the change for M5 in order to discuss the broader topic for M6.
That's a good point and explains the original rationale for the decision. In your absence, we realized we might not have the full picture. So input like this helps to shape the discussion.
That is something the team wishes to explore in greater detail.
We definitely do not plan to make existing use cases more difficult. Rather, our goal is to simplify common use cases and simplify the entry points into the AOT APIs. If there are existing use cases that effectively require the use of
For that particular convenience feature, the team wanted to add new methods to In summary, there are many facets to discuss. In light of that, we should probably dedicate a portion of a team meeting to dive deeper into this topic. |
Since users might not have a concrete need to work with
TypeReference
, we should introduceProxyHints.registerJdkProxy(String...)
to simplify use of the API for registering a dynamic proxy based on fully qualified class names of the required interfaces.The text was updated successfully, but these errors were encountered: