Comment made by: kommen
Using {{js.java-package-globals}} does solve the problem as well, and as there are more "tlds" provided (Packages, java, javafx, javax, com, org, edu) this would fix usage of those as well. As Mike pointed out, this would be a breaking change though, in the case where somebody would rely on those globals to exist when running in a graal env.