mirror of
https://github.com/openjdk/jdk16u.git
synced 2025-12-11 03:01:15 -06:00
8260592: jpackage tests fail when Desktop is not supported
Reviewed-by: asemenyuk Backport-of: 24a262124f507759d72cddc0d1371b31ef1661cf
This commit is contained in:
parent
247fea2d59
commit
e19759ba9a
@ -154,6 +154,12 @@ public class Hello implements OpenFilesHandler {
|
||||
|
||||
trace("Environment supports a display");
|
||||
|
||||
if (!Desktop.isDesktopSupported()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
trace("Environment supports a desktop");
|
||||
|
||||
try {
|
||||
// Disable JAB.
|
||||
// Needed to suppress error:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user