-
Notifications
You must be signed in to change notification settings - Fork 44
Rename some with
to add
or set
#395
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
Conversation
Here's a summary of what this PR does:
I'm missing A few remarks, but I don't want them to be addressed in this PR: I would personally name the |
Sure, I can do that when I get started today.
I'll look into that as well this morning.
Unfortunately that would be incorrect. The first bound is special (and optional) not just due to the class file API but also due to requirements of the class file format itself, and also the JLS. Generally the first bound can be a type variable or a class, and the extra bounds must be interfaces (but only if the first bind is not a type variable). |
Yeah, I realized just a while ago that it would be incorrect, but the reason is more subtle: a type variable may have interface type bounds without having a class type bound (aka implicit object bound). That is, the API must allow setting other bounds without setting the first bound. |
The |
And the merge issue too. |
Merging this. Let's submit other PRs if we want to adjust more :-) |
Fixes #389