bdj: fix stack overflow when using Java9+ debugging

4 jobs from master in 2 minutes and 43 seconds
Status Job ID Name Coverage
  Build
passed #254997
amd64 debian
build-debian

00:00:49

passed #254998
macos
build-macos

00:01:11

passed #255000
win32 amd64 debian
build-win32

00:01:53

passed #254999
win64 amd64 debian
build-win64

00:01:57