Extras: FlatInspector: fixed InaccessibleObjectException when running in Java 16

This commit is contained in:
Karl Tauber
2021-03-26 21:44:41 +01:00
parent bf500e46e7
commit a143e5777c
2 changed files with 2 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ FlatLaf Change Log
- Fixed missing focus indicators in heavy-weight popups. (issue #273)
- InternalFrame: Fixed translucent internal frame menu bar background if
`TitlePane.unifiedBackground` is `true`. (issue #274)
- Extras: UI Inspector: Fixed `InaccessibleObjectException` when running in Java 16.
## 1.1

View File

@@ -475,7 +475,7 @@ public class FlatInspector
f.setAccessible( true );
Object ui = f.get( c );
appendRow( buf, "UI", (ui != null ? ui.getClass().getName() : "null") );
} catch( NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException ex ) {
} catch( Exception ex ) {
// ignore
}
}