On Mon, 30 Nov 2026 05:39:36 GMT, David Holmes <[email protected]> wrote:
> > not clear what the reason is for getting into the "positional ambiguity" > > debate now. > > Simply that the message refers to "expected" and "actual" whereas the code > has parameters `lhs` and `rhs`. > > One of our test libraries at least says `"expected " + lhs + " to equal " + > rhs` - which to me is the "right" way to express this for the general case. I agree with you. I will change this issue, only change message from ```fail((msg == null ? "assertEquals" : msg) + " expected: " + lhs + " but was: " + rhs);``` to ```fail((msg == null ? "assertEquals" : msg) + " expected: " + lhs + " to equal " + rhs);``` ------------- PR Comment: https://git.openjdk.org/jdk/pull/34040#issuecomment-7382354069
