bdj: fix stack overflow when using Java9+ debugging

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

00:00:49

passed #254998
macos
build-macos

00:01:11

passed #255000
debian amd64 win32
build-win32

00:01:53

passed #254999
debian amd64 win64
build-win64

00:01:57