Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upWFLY-11866 Exception can not be passed-by-reference #12167
Conversation
https://issues.jboss.org/browse/WFLY-11866 is a regression of WFLY-2949. Exceptions are not passed-by-reference if enabled, this cause issues if the Exception is not marked as Serializable.
This comment has been minimized.
This comment has been minimized.
|
@chengfang or @tadamski Please review. |
This comment has been minimized.
This comment has been minimized.
|
@bstansberry Apparently there was some problem with exception cloning (commit 2a5561b) so IMO we should find out what it was before merging it. @stuartwdouglas Do you remember why the change above was needed? |
This comment has been minimized.
This comment has been minimized.
@tadamski I'm just guessing here - looking at Stuart's commit there, the previous issue seems to be that the exception cloning was being passed a "target type" of the invoked method's return type instead of the Having looked at @wfink's commit here, to me, the changes seem fine. However, given how often this part of code is runinng into issue and also looking at the linked JIRA, how (relatively) easy it's to reproduce this, I think adding a testcase for this issue would help prevent regressions. |
This comment has been minimized.
This comment has been minimized.
…e (WFLY-11866)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@bstansberry thanks! |
a82eabc
into
wildfly:master
wfink commentedMar 19, 2019
https://issues.jboss.org/browse/WFLY-11866 is a regression of WFLY-2949.
Exceptions are not passed-by-reference if enabled, this cause issues if the Exception is not marked as Serializable.
Thanks for submitting your Pull Request!
Please make sure your PR meets the following requirements:
[WFLY-XYZ] SubjectorWFLY-XYZ SubjectFor bigger changes, major and minor component upgrades make sure your PR also meets following requirements:
For new features ensure as well:
If you are not an active contributor of the WildFly project you can request sponsorship by one of the members to help guide you through the process.