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

Print a better error message when attempting to bridge from void to void #35

Merged
merged 1 commit into from
Nov 17, 2022

Conversation

basil
Copy link
Member

@basil basil commented Nov 17, 2022

#9 describes a bad error message: when attempting to bridge from void to void, an assertion is tripped rather than a nice error message being given. I reproduced this locally. With this fix there is a better error message. Unfortunately the test framework does not lend itself to this type of negative testing so I could not write an automated test.

Fixes #9

@basil basil added the bug label Nov 17, 2022
@basil basil merged commit 9040c38 into jenkinsci:master Nov 17, 2022
@basil basil deleted the error branch November 17, 2022 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accidentially asking for void.class bridge on void returning method produces assert
1 participant