Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C3D61D2C3 for ; Wed, 26 Sep 2012 13:00:23 +0000 (UTC) Received: (qmail 35936 invoked by uid 500); 26 Sep 2012 13:00:22 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 35697 invoked by uid 500); 26 Sep 2012 13:00:16 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 35653 invoked by uid 99); 26 Sep 2012 13:00:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2012 13:00:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2012 13:00:12 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6FB4223888E4; Wed, 26 Sep 2012 12:59:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1390451 - /cxf/branches/2.5.x-fixes/services/wsn/wsn-core/src/test/java/org/apache/cxf/wsn/WsnBrokerTest.java Date: Wed, 26 Sep 2012 12:59:28 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120926125928.6FB4223888E4@eris.apache.org> Author: dkulp Date: Wed Sep 26 12:59:28 2012 New Revision: 1390451 URL: http://svn.apache.org/viewvc?rev=1390451&view=rev Log: Fix compile failure on Java 5/6 Modified: cxf/branches/2.5.x-fixes/services/wsn/wsn-core/src/test/java/org/apache/cxf/wsn/WsnBrokerTest.java Modified: cxf/branches/2.5.x-fixes/services/wsn/wsn-core/src/test/java/org/apache/cxf/wsn/WsnBrokerTest.java URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/services/wsn/wsn-core/src/test/java/org/apache/cxf/wsn/WsnBrokerTest.java?rev=1390451&r1=1390450&r2=1390451&view=diff ============================================================================== --- cxf/branches/2.5.x-fixes/services/wsn/wsn-core/src/test/java/org/apache/cxf/wsn/WsnBrokerTest.java (original) +++ cxf/branches/2.5.x-fixes/services/wsn/wsn-core/src/test/java/org/apache/cxf/wsn/WsnBrokerTest.java Wed Sep 26 12:59:28 2012 @@ -26,9 +26,9 @@ import java.net.URL; import java.net.URLClassLoader; import java.util.ArrayList; import java.util.Arrays; -import java.util.Collections; import java.util.Enumeration; import java.util.List; +import java.util.NoSuchElementException; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import javax.xml.bind.JAXBElement; @@ -284,7 +284,14 @@ public abstract class WsnBrokerTest exte @Override public Enumeration getResources(String name) throws IOException { if ("META-INF/services/javax.xml.ws.spi.Provider".equals(name)) { - return Collections.emptyEnumeration(); + return new Enumeration() { + public boolean hasMoreElements() { + return false; + } + public URL nextElement() { + throw new NoSuchElementException(); + } + }; } return super.getResources(name); }