harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r441354 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io: ObjectInputStream.java ObjectOutputStream.java
Date Fri, 08 Sep 2006 02:39:35 GMT
Author: ndbeyer
Date: Thu Sep  7 19:39:34 2006
New Revision: 441354

URL: http://svn.apache.org/viewvc?view=rev&rev=441354
Log:
Remove complier warnings; ambigous call to vararg-based method.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectInputStream.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectOutputStream.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectInputStream.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectInputStream.java?view=diff&rev=441354&r1=441353&r2=441354
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectInputStream.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectInputStream.java
Thu Sep  7 19:39:34 2006
@@ -1943,8 +1943,7 @@
                 }
                 if (readResolveMethod != null) {
                     try {
-                        result = ((Method) readResolveMethod).invoke(result,
-                                null);
+                        result = ((Method) readResolveMethod).invoke(result, (Object[]) null);
                     } catch (IllegalAccessException iae) {
                     } catch (InvocationTargetException ite) {
                         Throwable target = ite.getTargetException();

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectOutputStream.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectOutputStream.java?view=diff&rev=441354&r1=441353&r2=441354
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectOutputStream.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectOutputStream.java
Thu Sep  7 19:39:34 2006
@@ -1874,8 +1874,7 @@
 					if (writeReplaceMethod != null) {
 						Object classBasedReplacement;
 						try {
-							classBasedReplacement = ((Method) writeReplaceMethod)
-									.invoke(object, null);
+							classBasedReplacement = ((Method) writeReplaceMethod).invoke(object, (Object[])null);
 						} catch (IllegalAccessException iae) {
 							classBasedReplacement = object; // WARNING - Not
 							// sure this is the



Mime
View raw message