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 0C3BF9DDC for ; Mon, 3 Oct 2011 20:33:29 +0000 (UTC) Received: (qmail 99264 invoked by uid 500); 3 Oct 2011 20:33:28 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 99208 invoked by uid 500); 3 Oct 2011 20:33:28 -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 99201 invoked by uid 99); 3 Oct 2011 20:33:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 20:33:28 +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; Mon, 03 Oct 2011 20:33:27 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D66002388A64 for ; Mon, 3 Oct 2011 20:33:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1178560 - /cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyAnnotationListener.java Date: Mon, 03 Oct 2011 20:33:07 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111003203307.D66002388A64@eris.apache.org> Author: dkulp Date: Mon Oct 3 20:33:07 2011 New Revision: 1178560 URL: http://svn.apache.org/viewvc?rev=1178560&view=rev Log: [CXF-3842] Make sure an namespaced Attr is created Patch from Marc Giger applied Modified: cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyAnnotationListener.java Modified: cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyAnnotationListener.java URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyAnnotationListener.java?rev=1178560&r1=1178559&r2=1178560&view=diff ============================================================================== --- cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyAnnotationListener.java (original) +++ cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyAnnotationListener.java Mon Oct 3 20:33:07 2011 @@ -386,7 +386,7 @@ public class PolicyAnnotationListener im Document doc = DOMUtils.createDocument(); Element el = doc.createElementNS(ns, "wsp:" + Constants.ELEM_POLICY_REF); - Attr att = doc.createAttribute("URI"); + Attr att = doc.createAttributeNS(null, "URI"); att.setValue(uri); el.setAttributeNodeNS(att); return el;