On Wed, 11 May 2022 17:27:38 GMT, Phil Race <p...@openjdk.org> wrote:
> As per the bug report and the CSR (please review that too), this makes AWT > load in headless mode > if only headless libraries are installed. > > It passes all our normal testing which at least should show that this doesn't > regress anything. > I had to manually remove libawt_xawt.so to verify that it will do as expected > in such a case, > and it would not be easy to create a test for that. > > CSR : https://bugs.openjdk.java.net/browse/JDK-8286598 Looks good. I verified that it does what I would expect. src/java.desktop/unix/classes/sun/awt/PlatformGraphicsInfo.java line 70: > 68: * to try headful and then unwind that and then retry as headless. > 69: */ > 70: final String[] libDirs = > System.getProperty("sun.boot.library.path", "").split(":"); Does reading this property also need to be in a `doPrivileged`? ------------- Marked as reviewed by kcr (Author). PR: https://git.openjdk.java.net/jdk/pull/8659