fix possible IllegalAccessException when running on Java 9

This commit is contained in:
Konstantin Bulenkov
2017-01-18 05:35:57 +08:00
parent b63faa22aa
commit 2799b97328
@@ -429,6 +429,9 @@ public class UIUtil {
LOG.debug("CGraphicsDevice.getScaleFactor(): not an Oracle Mac JDK or API has been changed");
} catch (NoSuchMethodException e) {
LOG.debug("CGraphicsDevice.getScaleFactor(): not an Oracle Mac JDK or API has been changed");
} catch (Exception e) {
LOG.debug(e);
LOG.debug("CGraphicsDevice.getScaleFactor(): probably it is Java 9");
}
try {