Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
JDK 5
Description
Warnings generated when compiling under JDK 5
[javac] Compiling 10 source files to /Users/clr/apachejdo/jdo/trunk/runtime20/target/classes
/Users/clr/apachejdo/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerImpl.java:1579: warning: non-varargs call of varargs method with inexact argument type for last parameter;
cast to java.lang.Class for a varargs call
cast to java.lang.Class[] for a non-varargs call and to suppress this warning
Constructor constr = newType.getConstructor(null);
^
/Users/clr/apachejdo/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerImpl.java:1582: warning: non-varargs call of varargs method with inexact argument type for last parameter;
cast to java.lang.Object for a varargs call
cast to java.lang.Object[] for a non-varargs call and to suppress this warning
obj = constr.newInstance(null);
^