You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by cl...@apache.org on 2005/09/14 03:03:29 UTC

svn commit: r280729 - /incubator/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerImpl.java

Author: clr
Date: Tue Sep 13 18:03:27 2005
New Revision: 280729

URL: http://svn.apache.org/viewcvs?rev=280729&view=rev
Log:
JDO-135 JDK 1.5 compiler warnings. Patch provided by Karan Malhi

Modified:
    incubator/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerImpl.java

Modified: incubator/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerImpl.java?rev=280729&r1=280728&r2=280729&view=diff
==============================================================================
--- incubator/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerImpl.java (original)
+++ incubator/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerImpl.java Tue Sep 13 18:03:27 2005
@@ -1576,10 +1576,10 @@
         Object obj = null;
 
         try {
-            Constructor constr = newType.getConstructor(null);
+            Constructor constr = newType.getConstructor((Class[])null);
 
             if (constr != null) {
-                obj = constr.newInstance(null);
+                obj = constr.newInstance((Object[])null);
             }
         } catch (Exception e) {
             throw new JDOUserException(msg.msg(