-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Improve BytecodeRecorderImpl error message #17317
Improve BytecodeRecorderImpl error message #17317
Conversation
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 89cef88
Full information is available in the Build summary check run. Test Failures⚙️ JVM Tests - JDK 11 #📦 core/deployment✖ ⚙️ JVM Tests - JDK 11 Windows #📦 core/deployment✖ ⚙️ JVM Tests - JDK 16 #📦 core/deployment✖ ⚙️ Maven Tests - JDK 11 #📦 integration-tests/maven✖ ✖ ✖ 📦 integration-tests/maven/target/test-classes/projects/qit-fast-jar✖ 📦 integration-tests/maven/target/test-classes/projects/qit-legacy-jar✖ 📦 integration-tests/maven/target/test-classes/projects/qit-uber-jar✖ ⚙️ Maven Tests - JDK 11 Windows #📦 integration-tests/maven✖ ✖ ✖ 📦 integration-tests/maven/target/test-classes/projects/qit-fast-jar✖ 📦 integration-tests/maven/target/test-classes/projects/qit-legacy-jar✖ 📦 integration-tests/maven/target/test-classes/projects/qit-uber-jar✖ |
if (ctorParamIndex == null | ||
&& i.getReadMethod().getReturnType() != i.getWriteMethod().getParameterTypes()[0]) { | ||
Class<?> getterReturnType = i.getReadMethod().getReturnType(); | ||
Class<?> setterParameterType = i.getWriteMethod().getParameterTypes()[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI seems to indicate that you need to be more defensive in these.
I am assuming it used to work because the expression was short-circuited by the first check in the if
statement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm already working on it.
When getter type and setter type do not match, provide a better error message with as much information as possible.
89cef88
to
ac5ea4e
Compare
When getter type and setter type do not match, provide a better error
message with as much information as possible.
This is related to #16954 .