You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by co...@apache.org on 2017/04/03 12:07:19 UTC

svn commit: r1789976 - /webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/input/SAMLTokenInputHandler.java

Author: coheigea
Date: Mon Apr  3 12:07:18 2017
New Revision: 1789976

URL: http://svn.apache.org/viewvc?rev=1789976&view=rev
Log:
Fixing build for JDK9

Modified:
    webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/input/SAMLTokenInputHandler.java

Modified: webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/input/SAMLTokenInputHandler.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/input/SAMLTokenInputHandler.java?rev=1789976&r1=1789975&r2=1789976&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/input/SAMLTokenInputHandler.java (original)
+++ webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/impl/processor/input/SAMLTokenInputHandler.java Mon Apr  3 12:07:18 2017
@@ -36,6 +36,7 @@ import javax.xml.parsers.DocumentBuilder
 import javax.xml.parsers.ParserConfigurationException;
 import javax.xml.stream.XMLStreamConstants;
 import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.events.Attribute;
 import javax.xml.stream.events.Comment;
 import javax.xml.stream.events.Namespace;
 import javax.xml.stream.events.ProcessingInstruction;
@@ -443,15 +444,15 @@ public class SAMLTokenInputHandler exten
                 }
                 currentNode = currentNode.appendChild(element);
                 @SuppressWarnings("unchecked")
-                Iterator<XMLSecNamespace> namespaceIterator = xmlSecStartElement.getNamespaces();
+                Iterator<Namespace> namespaceIterator = xmlSecStartElement.getNamespaces();
                 while (namespaceIterator.hasNext()) {
-                    XMLSecNamespace next = namespaceIterator.next();
+                    XMLSecNamespace next = (XMLSecNamespace)namespaceIterator.next();
                     parseXMLEvent(next, currentNode, document);
                 }
                 @SuppressWarnings("unchecked")
-                Iterator<XMLSecAttribute> attributesIterator = xmlSecStartElement.getAttributes();
+                Iterator<Attribute> attributesIterator = xmlSecStartElement.getAttributes();
                 while (attributesIterator.hasNext()) {
-                    XMLSecAttribute next = attributesIterator.next();
+                    XMLSecAttribute next = (XMLSecAttribute)attributesIterator.next();
                     parseXMLEvent(next, currentNode, document);
                 }
                 //add namespace which is not declared on current element but must be on a parent element: