workaround for gcj bug regarding static methods and members
authoradam <adam@megacz.com>
Wed, 14 Apr 2004 07:06:50 +0000 (07:06 +0000)
committeradam <adam@megacz.com>
Wed, 14 Apr 2004 07:06:50 +0000 (07:06 +0000)
darcs-hash:20040414070650-5007d-91def382fc14b9b3123552d2b627b91e6fa0753a.gz

src/org/ibex/util/EjAlbertBrowserLauncher.java

index a2bb059..cf46138 100644 (file)
@@ -98,7 +98,7 @@ public class EjAlbertBrowserLauncher {
        private static Method getFileType;
        
        /** The openURL method of com.apple.mrj.MRJFileUtils */
-       private static Method openURL;
+       private static Method openURLm;
        
        /** The makeOSType method of com.apple.MacOS.OSUtils */
        private static Method makeOSType;
@@ -339,7 +339,7 @@ public class EjAlbertBrowserLauncher {
                        case MRJ_3_1:
                                try {
                                        mrjFileUtilsClass = Class.forName("com.apple.mrj.MRJFileUtils");
-                                       openURL = mrjFileUtilsClass.getDeclaredMethod("openURL", new Class[] { String.class });
+                                       openURLm = mrjFileUtilsClass.getDeclaredMethod("openURL", new Class[] { String.class });
                                } catch (ClassNotFoundException cnfe) {
                                        errorMessage = cnfe.getMessage();
                                        return false;
@@ -522,7 +522,7 @@ public class EjAlbertBrowserLauncher {
                                break;
                        case MRJ_3_1:
                                try {
-                                       openURL.invoke(null, new Object[] { url });
+                                       openURLm.invoke(null, new Object[] { url });
                                } catch (InvocationTargetException ite) {
                                        throw new IOException("InvocationTargetException while calling openURL: " + ite.getMessage());
                                } catch (IllegalAccessException iae) {