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

Exceptions when using reflections crunched to RuntimeException #36

Open
michaelhglass opened this issue Apr 8, 2018 · 0 comments
Open
Labels
question Further information is requested

Comments

@michaelhglass
Copy link
Member

While working on the codacy PMD issues, I recognize that we currently seem to avoid having checked exceptions when using reflections by catching them and throwing unchecked raw RuntimeException. An example can be found in org.opt4j.core.Genotype newInstance() and then considering the implementation of the interface in org.opt4j.core.genotype.IntegerGenotype.
What's your opinion on how to address this? Obviously, we want to back out anyway in case the newInstance() function throws any of the checked exceptions and just choosing an unchecked Exception that is not raw RuntimeException may also be considered artificial PMD appeasement. :-)

@michaelhglass michaelhglass added the question Further information is requested label Apr 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant