There was a request for include causing exceptions to list of suppressed ones when an error happens during 2PC prepare call. That was fixed by
The fix left aside a branch of code under doPrepare method which handles cases when XAResourceRecord#topLevelPrepare ends in situation which is not compliant with XA specification (https://github.com/jbosstm/narayana/blob/5.5.0.Final/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/resources/arjunacore/XAResourceRecord.java#L280)
This enhancement follows the fix
JBTM-2822 and saves deferred exception at that case as well.