Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8260592: jpackage tests fail when Desktop is not supported #2291

Closed
Closed
Changes from 2 commits
Commits
File filter
Filter file types
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -154,6 +154,12 @@ private static Hello createInstance() {

trace("Environment supports a display");

if (!Desktop.isDesktopSupported()) {
return null;
}

trace("Environment supports a desktop");

try {
// Disable JAB.
// Needed to suppress error:
@@ -163,12 +169,6 @@ private static Hello createInstance() {
ex.printStackTrace();
}

if (!Desktop.isDesktopSupported()) {
return null;
}

trace("Environment supports a desktop");

try {
var desktop = Desktop.getDesktop();
if (desktop.isSupported(Desktop.Action.APP_OPEN_FILE)) {
ProTip! Use n and p to navigate between commits in a pull request.