harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r452715 - in /incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf: basic/MenuKeyBindingProcessor.java metal/MetalLookAndFeel.java
Date Wed, 04 Oct 2006 04:09:39 GMT
Author: ndbeyer
Date: Tue Oct  3 21:09:38 2006
New Revision: 452715

URL: http://svn.apache.org/viewvc?view=rev&rev=452715
Log:
Fix ambiguous varargs method calls.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/MenuKeyBindingProcessor.java
    incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalLookAndFeel.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/MenuKeyBindingProcessor.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/MenuKeyBindingProcessor.java?view=diff&rev=452715&r1=452714&r2=452715
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/MenuKeyBindingProcessor.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/MenuKeyBindingProcessor.java
Tue Oct  3 21:09:38 2006
@@ -259,7 +259,7 @@
                 return;
             }
             try {
-                fireCanceled.invoke(popup, NO_CLASSES_NO_ARGUMENTS);
+                fireCanceled.invoke(popup, (Object[])NO_CLASSES_NO_ARGUMENTS);
             } catch (IllegalArgumentException e) {
             } catch (IllegalAccessException e) {
             } catch (InvocationTargetException e) {}

Modified: incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalLookAndFeel.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalLookAndFeel.java?view=diff&rev=452715&r1=452714&r2=452715
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalLookAndFeel.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalLookAndFeel.java
Tue Oct  3 21:09:38 2006
@@ -1285,7 +1285,7 @@
                 Class classObj = Class.forName(className);
                 result = (methodName == null)
                         ? classObj.newInstance()
-                        : classObj.getMethod(methodName, null).invoke(null, null);
+                        : classObj.getMethod(methodName).invoke(null);
             } catch (final Exception e) {
                 e.printStackTrace();
             }



Mime
View raw message