Skip to content

Commit

Permalink
#193: SAAJ TCK Envelope.createName test failure
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Feb 11, 2022
1 parent c2fb5e1 commit ff25947
Showing 1 changed file with 4 additions and 12 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -220,18 +220,10 @@ public Name createName(String localName, String prefix, String uri)
return NameImpl.create(localName, prefix, uri);
}

public Name createName(String localName, String prefix)
public Name createName(String localName, String uri)
throws SOAPException {
String namespace = getNamespaceURI(prefix);
if (namespace == null) {
log.log(
Level.SEVERE,
"SAAJ0126.impl.cannot.locate.ns",
new String[] { prefix });
throw new SOAPExceptionImpl(
"Unable to locate namespace for prefix " + prefix);
}
return NameImpl.create(localName, prefix, namespace);

return NameImpl.createFromQualifiedName(localName, uri);
}

@Override
Expand Down

0 comments on commit ff25947

Please sign in to comment.