--- a/jdk/test/java/awt/Desktop/OpenByUNCPathNameTest/OpenByUNCPathNameTest.java Wed Dec 18 10:41:11 2013 +0000
+++ b/jdk/test/java/awt/Desktop/OpenByUNCPathNameTest/OpenByUNCPathNameTest.java Wed Dec 18 11:01:33 2013 +0000
@@ -45,6 +45,10 @@
System.out.println("java.awt.Desktop is not supported on this platform.");
} else {
Desktop desktop = Desktop.getDesktop();
+ if (!desktop.isSupported(Desktop.Action.OPEN)) {
+ System.out.println("Action.OPEN is not supported on this platform.");
+ return;
+ }
File file = File.createTempFile("Read Me File", ".txt");
try {
// Test opening of the file with Windows local file path.