We had a few tests that were calling prepare, and then commit(xid, true);
What isn't correct. If you have onePhase=true, that means you didn't have a prepare.
Hence now, if you call prepare, and then commit(xid, true), you would have a XAException.
I have already changed the tests we had.
This is just to let you guys aware about the change.