Skip to content

[api-xml-adjuster] constructors could reference generic type parameters. #147

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

atsushieno
Copy link
Contributor

Constructors had been considered to NOT reference generic type parameters
because Java syntax does not allow them. However, its argument types could
be java.lang.Class in class-parse output XML (which I guess is because
class-parse tries to be as simple-and-stupid as it can be?) and every
difficulty is thrown toward api-xml-adjuster. Hence it is corrected here.

Note that it was not the first time that generic constructor arguments
have been taken care as a valid input (0ec431e).

Constructors had been considered to NOT reference generic type parameters
because Java syntax does not allow them. However, its argument types could
be java.lang.Class<T> in class-parse output XML (which I guess is because
class-parse tries to be as simple-and-stupid as it can be?) and every
difficulty is thrown toward api-xml-adjuster. Hence it is corrected here.

Note that it was not the first time that generic constructor arguments
have been taken care as a valid input (0ec431e).
@jonpryor
Copy link
Member

This is the second commit for adding/supporting generic type parameters in constructors; see also 0ec431e/PR #134. Neither of these provided unit tests, so I now have to wonder if there are any other "corner cases"/"unimplemented bits" that are still present.

Please add unit tests.

@atsushieno
Copy link
Contributor Author

That's quite untrue; the previous commit introduces generics in constructor signature itself. This commit supports use of generic arguments in constructors which is NOT part of genericTypeParameters, which were added in the updated Android reference docs. They are TOTALLY different.

@jonpryor jonpryor merged commit 5165fa5 into dotnet:master Jun 1, 2017
jonpryor pushed a commit to jonpryor/java.interop that referenced this pull request Jun 5, 2017
…rs. (dotnet#147)

Constructors had been considered to NOT reference generic type parameters
because Java syntax does not allow them. However, its argument types could
be java.lang.Class<T> in class-parse output XML (which I guess is because
class-parse tries to be as simple-and-stupid as it can be?) and every
difficulty is thrown toward api-xml-adjuster. Hence it is corrected here.

Note that it was not the first time that generic constructor arguments
have been taken care as a valid input (0ec431e).
jonpryor pushed a commit that referenced this pull request Jun 5, 2017
…rs. (#147)

Constructors had been considered to NOT reference generic type parameters
because Java syntax does not allow them. However, its argument types could
be java.lang.Class<T> in class-parse output XML (which I guess is because
class-parse tries to be as simple-and-stupid as it can be?) and every
difficulty is thrown toward api-xml-adjuster. Hence it is corrected here.

Note that it was not the first time that generic constructor arguments
have been taken care as a valid input (0ec431e).
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants