If you execute the code via the accompanied main function will see a stack trace printed in both cases. However, if the code is executed inside a lambda handler function you will see that it does not ...
The minimal reproducing code can be found in com.example.stackoverflow.AppKt.reproduce. If you execute the code via the accompanied main function will see a stack trace printed in both cases.
A recent JavaWorld Community forum message (Stack Overflow after instantiating new object) reminded me that the basics of the StackOverflowError are not always ...