-
Notifications
You must be signed in to change notification settings - Fork 549
build on jdk10, fix java 9+ incompatibilities #1068
Conversation
I intended to update the Travis config to build on Java 10 and/or 11, but it looks like neither are available yet. We should consider dropping some of the docker versions used in the build matrix, as building with several additional JDKs just multiples the number of builds to 15 now - Docker 1.12.6 was released on 2017-01-10 for instance. |
Looks like jdk10 is supported via |
Codecov Report
@@ Coverage Diff @@
## master #1068 +/- ##
=========================================
Coverage ? 70.14%
Complexity ? 786
=========================================
Files ? 177
Lines ? 3762
Branches ? 390
=========================================
Hits ? 2639
Misses ? 959
Partials ? 164 |
Looks like I misread the docs, |
This library was originally using Java 7. Java 7 had `Date` objects with only millisecond resolution. This was a problem when translating timestamps with nanosecond precision from the Docker API to `Date`. This library is on Java 8 now which supports nanosecond resolution. This PR fixes the findbugs error here #1068. See build logs https://travis-ci.org/spotify/docker-client/jobs/426781589.
This library was originally using Java 7. Java 7 had `Date` objects with only millisecond precision. This was a problem when translating timestamps with nanosecond precision from the Docker API to `Date`. This library is on Java 8 now whose `Date` translates a timestamp with nanosecond precision correctly. Removing `DockerDateFormat` fixes the findbugs error here #1068. See build logs https://travis-ci.org/spotify/docker-client/jobs/426781589.
0174b1a
to
d713e54
Compare
re-did this PR to just add |
first version with support for Java 9 is 0.7.8: https://groups.google.com/forum/#!msg/jacoco/Zf0Cwj13G2g/wpyrYAEECAAJ this commit updates to latest available
Seems like the only real issue with Java 9 (fixed in a commit above) is that Jersey classes throw an Exception when loaded - Java 9 removes the
|
the failing test is for a single build in the test matrix with a known-flaky test. Otherwise I think this change will unblock some other projects from addressing Java 9 compatibility problems. |
after re-running some flaky tests 10x, the build is green ✅ |
same problem as @mattnworb with Java 11 (tried with shaded jar as well) openjdk 11.0.1 2018-10-16 |
@renannprado have you tried version |
No description provided.