----- Forwarded message from ----- To: [email protected] Subject: FYI: Fix for PR34580
This fixes PR34580 by correcting the access modifier on
java.awt.Desktop.isDesktopSupported().
Changelog:
2007-12-25 Andrew John Hughes <[EMAIL PROTECTED]>
PR classpath/34580:
* java/awt/Desktop.java:
(isDesktopSupported()): Made public.
--
Andrew :-)
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: java/awt/Desktop.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Desktop.java,v
retrieving revision 1.1
diff -u -3 -p -u -r1.1 Desktop.java
--- java/awt/Desktop.java 2 Mar 2007 21:01:41 -0000 1.1
+++ java/awt/Desktop.java 25 Dec 2007 03:40:39 -0000
@@ -120,7 +120,7 @@ public class Desktop
}
/**
- * Returns an istance of the Desktop Class.
+ * Returns an instance of the Desktop Class.
*
* If this implementation does not support Desktop, an
* UnsupportedOperationException will be thrown.
@@ -155,7 +155,7 @@ public class Desktop
* @return true if this class is supported on the current platform;
* false otherwise
*/
- private static boolean isDesktopSupported()
+ public static boolean isDesktopSupported()
{
if (GraphicsEnvironment.isHeadless())
return false;
----- End forwarded message -----
--
Andrew :-)
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
signature.asc
Description: Digital signature
