ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant AntClassLoader.java
Date Mon, 07 Mar 2005 15:10:56 GMT
stevel      2005/03/07 07:10:56

  Modified:    src/main/org/apache/tools/ant/taskdefs Clone.java
               src/main/org/apache/tools/ant AntClassLoader.java
  Log:
  deal with javac1.5 whinings
  
  Revision  Changes    Path
  1.2       +1 -1      ant/src/main/org/apache/tools/ant/taskdefs/Clone.java
  
  Index: Clone.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Clone.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Clone.java	7 Jan 2005 21:57:00 -0000	1.1
  +++ Clone.java	7 Mar 2005 15:10:56 -0000	1.2
  @@ -71,7 +71,7 @@
                   + cloneref + "\"", Project.MSG_VERBOSE);
               Method m = ob.getClass().getMethod("clone", NO_ARGS);
               try {
  -                Object bo = m.invoke(ob, NO_ARGS);
  +                Object bo = m.invoke(ob, (Object[])NO_ARGS);
                   if (bo == null) {
                       throw new BuildException(m.toString() + " returned null");
                   }
  
  
  
  1.90      +1 -1      ant/src/main/org/apache/tools/ant/AntClassLoader.java
  
  Index: AntClassLoader.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/AntClassLoader.java,v
  retrieving revision 1.89
  retrieving revision 1.90
  diff -u -r1.89 -r1.90
  --- AntClassLoader.java	3 Mar 2005 13:58:25 -0000	1.89
  +++ AntClassLoader.java	7 Mar 2005 15:10:56 -0000	1.90
  @@ -518,7 +518,7 @@
               if (cons.length > 0 && cons[0] != null) {
                   final String[] strs = new String[NUMBER_OF_STRINGS];
                   try {
  -                    cons[0].newInstance(strs);
  +                    cons[0].newInstance((Object[])strs);
                       // Expecting an exception to be thrown by this call:
                       // IllegalArgumentException: wrong number of Arguments
                   } catch (Exception e) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message