You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2016/11/29 00:10:12 UTC
tomee git commit: fix jdk 1.6 compilation problem
Repository: tomee
Updated Branches:
refs/heads/tomee-1.7.x e0397f495 -> c34885ec7
fix jdk 1.6 compilation problem
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/c34885ec
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/c34885ec
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/c34885ec
Branch: refs/heads/tomee-1.7.x
Commit: c34885ec794297195579e1fb1ba9ccc483f83702
Parents: e0397f4
Author: Jonathan S. Fisher <jf...@tomitribe.com>
Authored: Mon Nov 28 18:00:03 2016 -0600
Committer: Jonathan S. Fisher <jf...@tomitribe.com>
Committed: Mon Nov 28 18:00:03 2016 -0600
----------------------------------------------------------------------
.../java/org/apache/openejb/client/HttpConnectionFactory.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tomee/blob/c34885ec/server/openejb-client/src/main/java/org/apache/openejb/client/HttpConnectionFactory.java
----------------------------------------------------------------------
diff --git a/server/openejb-client/src/main/java/org/apache/openejb/client/HttpConnectionFactory.java b/server/openejb-client/src/main/java/org/apache/openejb/client/HttpConnectionFactory.java
index a019fbc..e890e7e 100644
--- a/server/openejb-client/src/main/java/org/apache/openejb/client/HttpConnectionFactory.java
+++ b/server/openejb-client/src/main/java/org/apache/openejb/client/HttpConnectionFactory.java
@@ -23,7 +23,6 @@ import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
-import java.nio.charset.StandardCharsets;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.util.Map;
@@ -94,7 +93,7 @@ public class HttpConnectionFactory implements ConnectionFactory {
if (uri.getUserInfo() != null) {
String authorization = "Basic "
- + printBase64Binary((url.getUserInfo()).getBytes(StandardCharsets.UTF_8));
+ + printBase64Binary((url.getUserInfo()).getBytes("UTF-8"));
httpURLConnection.setRequestProperty("Authorization", authorization);
}