From 6b23e40b4ed79a33dc06f6a55ee2ab5521b88c59 Mon Sep 17 00:00:00 2001 From: mguessan Date: Wed, 4 Nov 2009 09:45:23 +0000 Subject: [PATCH] Fix regression from revision 811 git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@818 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/ui/OSXAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/davmail/ui/OSXAdapter.java b/src/java/davmail/ui/OSXAdapter.java index f04a2579..df97ac5c 100644 --- a/src/java/davmail/ui/OSXAdapter.java +++ b/src/java/davmail/ui/OSXAdapter.java @@ -29,7 +29,7 @@ public class OSXAdapter implements InvocationHandler { protected final Method targetMethod; protected final String proxySignature; - static Constructor macOSXApplication; + static Object macOSXApplication; /** * Pass this method an Object and Method equipped to perform application shutdown logic. @@ -135,7 +135,7 @@ public class OSXAdapter implements InvocationHandler { public static void setHandler(OSXAdapter adapter) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException { Class applicationClass = Class.forName("com.apple.eawt.Application"); if (macOSXApplication == null) { - macOSXApplication = (Constructor) applicationClass.getConstructor((Class[]) null).newInstance((Object[]) null); + macOSXApplication = applicationClass.getConstructor((Class[]) null).newInstance((Object[]) null); } Class applicationListenerClass = Class.forName("com.apple.eawt.ApplicationListener"); Method addListenerMethod = applicationClass.getDeclaredMethod("addApplicationListener", new Class[]{applicationListenerClass});