Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stackoverflow in ArgumentsAreDifferent reporting
When using Mockito without opentest4j, reporting an ArgumentsAreDifferent exception would throw a StackOverflowError when attempting to obtain the message from the exception. The root problem was that super.toString() would call its own getMessage(). Instead, we should obtain the message from the super, to avoid the circular call.
- Loading branch information