peterreilly    2005/03/14 01:19:28

  Modified:    src/main/org/apache/tools/ant AntClassLoader.java
  Log:
  add cast to allow java1.5 to compile without whining
  
  Revision  Changes    Path
  1.92      +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.91
  retrieving revision 1.92
  diff -u -r1.91 -r1.92
  --- AntClassLoader.java       11 Mar 2005 18:51:03 -0000      1.91
  +++ AntClassLoader.java       14 Mar 2005 09:19:27 -0000      1.92
  @@ -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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to