From 2799b9732827ec9dd4c9639bebd37e020374883b Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Wed, 18 Jan 2017 05:35:57 +0800 Subject: [PATCH] fix possible IllegalAccessException when running on Java 9 --- platform/util/src/com/intellij/util/ui/UIUtil.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/util/src/com/intellij/util/ui/UIUtil.java b/platform/util/src/com/intellij/util/ui/UIUtil.java index f0b6ec91418d..e24465225e95 100644 --- a/platform/util/src/com/intellij/util/ui/UIUtil.java +++ b/platform/util/src/com/intellij/util/ui/UIUtil.java @@ -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 {