You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2019/01/19 09:51:06 UTC

[httpcomponents-client] branch java11-compatibility created (now ef030c8)

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a change to branch java11-compatibility
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git.


      at ef030c8  Added oraclejdk8 and openjdk11 to Travis-CI build matrix

This branch includes the following new commits:

     new 47df335  Tweaked SSL test cases to make them pass with Java 11
     new ef030c8  Added oraclejdk8 and openjdk11 to Travis-CI build matrix

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[httpcomponents-client] 02/02: Added oraclejdk8 and openjdk11 to Travis-CI build matrix

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch java11-compatibility
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit ef030c8ec1998a2298f9b7d420a8349b35bb677a
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Sat Jan 19 10:50:27 2019 +0100

    Added oraclejdk8 and openjdk11 to Travis-CI build matrix
---
 .travis.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 9b6c70b..fa03bf1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,6 +18,8 @@ sudo: false
 
 jdk:
   - openjdk7
+  - oraclejdk8
+  - openjdk11
 
 after_success:
-  - mvn clean cobertura:cobertura coveralls:report
+  - mvn clean cobertura:cobertura coveralls:report -P-animal-sniffer


[httpcomponents-client] 01/02: Tweaked SSL test cases to make them pass with Java 11

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch java11-compatibility
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit 47df3352fd9474141fc864aad48deeccdbd46735
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Sat Jan 19 10:46:48 2019 +0100

    Tweaked SSL test cases to make them pass with Java 11
---
 .../src/test/java/org/apache/http/conn/ssl/TestSSLSocketFactory.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/httpclient/src/test/java/org/apache/http/conn/ssl/TestSSLSocketFactory.java b/httpclient/src/test/java/org/apache/http/conn/ssl/TestSSLSocketFactory.java
index c6ff47f..33afa01 100644
--- a/httpclient/src/test/java/org/apache/http/conn/ssl/TestSSLSocketFactory.java
+++ b/httpclient/src/test/java/org/apache/http/conn/ssl/TestSSLSocketFactory.java
@@ -203,8 +203,10 @@ public class TestSSLSocketFactory {
         final SSLSocket sslSocket = (SSLSocket) socketFactory.connectSocket(0, socket, target, remoteAddress, null,
                 context);
         try {
-            final SSLSession sslsession = sslSocket.getSession();
+            final InputStream inputStream = sslSocket.getInputStream();
+            Assert.assertEquals(-1, inputStream.read());
 
+            final SSLSession sslsession = sslSocket.getSession();
             Assert.assertNotNull(sslsession);
             Assert.assertTrue(hostVerifier.isFired());
         } finally {