Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-135

Compiler warnings compiling under JDK 5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • runtime2
    • 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);
      ^

      Attachments

        Activity

          People

            Unassigned Unassigned
            clr Craig L Russell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: