This package uses variables banned in some scopes. This may stop working in future versions of Portage.
$ pkgcheck scan -k VariableScope dev-java/openjdk
VariableScope: version 11.0.14_p9-r1: variable 'WORKDIR' used in 'pkg_setup', line 144
VariableScope: version 17.0.2_p8: variable 'WORKDIR' used in 'pkg_setup', line 155
I believe it was fixed in series of commits by floppym, especially 8b4422f27c5f55e8cf5b3610cfa3b8948ad64b7d