Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 25771 invoked from network); 26 Jun 2005 09:59:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jun 2005 09:59:02 -0000 Received: (qmail 14999 invoked by uid 500); 26 Jun 2005 09:57:50 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 12909 invoked by uid 500); 26 Jun 2005 09:57:38 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 11990 invoked by uid 500); 26 Jun 2005 09:57:33 -0000 Received: (qmail 11379 invoked by uid 99); 26 Jun 2005 09:57:29 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 26 Jun 2005 02:57:29 -0700 Received: (qmail 19630 invoked by uid 1569); 26 Jun 2005 09:57:29 -0000 Message-ID: <20050626095729.19629.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r201765 - in /jakarta/commons/proper/collections/trunk: ./ src/java/org/apache/commons/collections/ src/java/org/apache/commons/collections/functors/ src/test/org/apache/commons/collections/ Date: Sun, 26 Jun 2005 09:57:28 -0000 To: commons-cvs@jakarta.apache.org From: scolebourne@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: scolebourne Date: Sat Jun 25 09:39:34 2005 New Revision: 201765 URL: http://svn.apache.org/viewcvs?rev=201765&view=rev Log: Add casts to avoid some JDK1.5 compilation warnings bug 35474, from Will Pugh Modified: jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html jakarta/commons/proper/collections/trunk/project.xml jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/IteratorUtils.java jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/PrototypeFactory.java jakarta/commons/proper/collections/trunk/src/test/org/apache/commons/collections/BulkTest.java jakarta/commons/proper/collections/trunk/src/test/org/apache/commons/collections/TestBeanMap.java Modified: jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html?rev=201765&r1=201764&r2=201765&view=diff ============================================================================== --- jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html (original) +++ jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html Sat Jun 25 09:39:34 2005 @@ -21,6 +21,11 @@

RELEASE NOTES: COLLECTIONS 3.2

+Commons collections is a project to develop and maintain collection classes +based on and inspired by the JDK collection framework. +This project is JDK1.2 compatible, and does not use JDK1.5 generics. +

+

This release adds various new classes and fixes a number of bugs. All feedback should be directed to commons-user at jakarta.apache.org.

@@ -74,6 +79,7 @@
  • BoundedFifoBuffer - Fix iterator remove bug causing ArrayIndexOutOfBounds error [33071]
  • IteratorChain.remove() - Fix to avoid IllegalStateException when one of the underlying iterators is a FilterIterator [34267]
  • ExtendedProperties.convertProperties() - Fix to handle default properties maps correctly [32204]
  • +
  • Add casts to avoid some JDK1.5 compilation warnings [35474]
  • JAVADOC

    Modified: jakarta/commons/proper/collections/trunk/project.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/collections/trunk/project.xml?rev=201765&r1=201764&r2=201765&view=diff ============================================================================== --- jakarta/commons/proper/collections/trunk/project.xml (original) +++ jakarta/commons/proper/collections/trunk/project.xml Sat Jun 25 09:39:34 2005 @@ -277,6 +277,9 @@ Jonas Van Poucke + Will Pugh + + Herve Quiroz Modified: jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/IteratorUtils.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/IteratorUtils.java?rev=201765&r1=201764&r2=201765&view=diff ============================================================================== --- jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/IteratorUtils.java (original) +++ jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/IteratorUtils.java Sat Jun 25 09:39:34 2005 @@ -895,9 +895,9 @@ } else { try { - Method method = obj.getClass().getMethod("iterator", null); + Method method = obj.getClass().getMethod("iterator", (Class[]) null); if (Iterator.class.isAssignableFrom(method.getReturnType())) { - Iterator it = (Iterator) method.invoke(obj, null); + Iterator it = (Iterator) method.invoke(obj, (Object[]) null); if (it != null) { return it; } Modified: jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/PrototypeFactory.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/PrototypeFactory.java?rev=201765&r1=201764&r2=201765&view=diff ============================================================================== --- jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/PrototypeFactory.java (original) +++ jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/functors/PrototypeFactory.java Sat Jun 25 09:39:34 2005 @@ -59,7 +59,7 @@ return ConstantFactory.NULL_INSTANCE; } try { - Method method = prototype.getClass().getMethod("clone", null); + Method method = prototype.getClass().getMethod("clone", (Class[]) null); return new PrototypeCloneFactory(prototype, method); } catch (NoSuchMethodException ex) { @@ -116,7 +116,7 @@ */ private void findCloneMethod() { try { - iCloneMethod = iPrototype.getClass().getMethod("clone", null); + iCloneMethod = iPrototype.getClass().getMethod("clone", (Class[]) null); } catch (NoSuchMethodException ex) { throw new IllegalArgumentException("PrototypeCloneFactory: The clone method must exist and be public "); @@ -135,7 +135,7 @@ } try { - return iCloneMethod.invoke(iPrototype, null); + return iCloneMethod.invoke(iPrototype, (Object[])null); } catch (IllegalAccessException ex) { throw new FunctorException("PrototypeCloneFactory: Clone method must be public", ex); Modified: jakarta/commons/proper/collections/trunk/src/test/org/apache/commons/collections/BulkTest.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/collections/trunk/src/test/org/apache/commons/collections/BulkTest.java?rev=201765&r1=201764&r2=201765&view=diff ============================================================================== --- jakarta/commons/proper/collections/trunk/src/test/org/apache/commons/collections/BulkTest.java (original) +++ jakarta/commons/proper/collections/trunk/src/test/org/apache/commons/collections/BulkTest.java Sat Jun 25 09:39:34 2005 @@ -354,7 +354,7 @@ BulkTest bulk2; try { - bulk2 = (BulkTest)m.invoke(bulk, null); + bulk2 = (BulkTest)m.invoke(bulk, (Object[]) null); if (bulk2 == null) return; } catch (InvocationTargetException ex) { ex.getTargetException().printStackTrace(); @@ -412,7 +412,7 @@ private static BulkTest makeTestCase(Class c, Method m) { Constructor con = getTestCaseConstructor(c); try { - return (BulkTest)con.newInstance(new String[] { m.getName() }); + return (BulkTest)con.newInstance(new Object[] {m.getName()}); } catch (InvocationTargetException e) { e.printStackTrace(); throw new RuntimeException(); // FIXME; Modified: jakarta/commons/proper/collections/trunk/src/test/org/apache/commons/collections/TestBeanMap.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/collections/trunk/src/test/org/apache/commons/collections/TestBeanMap.java?rev=201765&r1=201764&r2=201765&view=diff ============================================================================== --- jakarta/commons/proper/collections/trunk/src/test/org/apache/commons/collections/TestBeanMap.java (original) +++ jakarta/commons/proper/collections/trunk/src/test/org/apache/commons/collections/TestBeanMap.java Sat Jun 25 09:39:34 2005 @@ -330,7 +330,7 @@ public void testMethodAccessor() throws Exception { BeanMap map = (BeanMap) makeFullMap(); - Method method = BeanWithProperties.class.getDeclaredMethod("getSomeIntegerValue", null); + Method method = BeanWithProperties.class.getDeclaredMethod("getSomeIntegerValue", (Class[]) null); assertEquals(method, map.getReadMethod("someIntegerValue")); } --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org