Skip to content

Dead Exception in RealClassGenerator #4880

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

Closed
nick-someone opened this issue Dec 1, 2017 · 2 comments
Closed

Dead Exception in RealClassGenerator #4880

nick-someone opened this issue Dec 1, 2017 · 2 comments

Comments

@nick-someone
Copy link
Contributor

new RuntimeException(newClass.getInterfaces()[0].getClassLoader() + " " + interfaces[0].getClassLoader());

This line creates an exception, but doesn't throw it. If thrown, a number of CI tests fail: https://travis-ci.org/jruby/jruby/builds/305072247

This condition/exception should be removed if it's not needed, or the exception should be thrown and the relevant tests fixed.

@headius
Copy link
Member

headius commented Dec 5, 2017

The fact that so many tests fail tells me this condition is no longer valid, but I'll take a deeper look.

@headius headius added this to the JRuby 9.1.15.0 milestone Dec 5, 2017
@headius
Copy link
Member

headius commented Dec 5, 2017

The condition is backwards. I'll fix in a moment.

headius added a commit that referenced this issue Dec 5, 2017

Verified

This commit was signed with the committer’s verified signature. The key has expired.
aurelien-reeves Aurélien Reeves
Fixes #4880.
@headius headius closed this as completed Dec 5, 2017
headius added a commit that referenced this issue Dec 5, 2017

Verified

This commit was signed with the committer’s verified signature.
aurelien-reeves Aurélien Reeves
Fixes #4880.
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