Skip to content
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

It should be impossible to configure actual type arguments for CtTypeParameterReference #600

Closed
leventov opened this issue Apr 19, 2016 · 1 comment

Comments

@leventov
Copy link
Contributor

methods like addActualTypeArgument() should throw exception, because this is illegal things to do. But they have some logic currently in CtTypeParameterReferenceImpl.

@monperrus
Copy link
Collaborator

monperrus commented May 9, 2016

I'm not in favor of throwing an exception because it would require client code to add ugly try/catch.

however, you're right, and there should not be no code in CtTypeParameterReference.addActualTypeArgument. We'll try to remove it and replace it by an appropriate comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants