daml/ledger-service
Andreas Herrmann 39a38d3a37
Update to Java 11 (#11512)
* Update to Java 11

changelog_begin
changelog_end

* Fix RoundingMode deprecation warnings

* Fix dep-ann warning

* Integer constructor

* JavaX annotation dependency

* javax.xml.bind was removed in Java 11

Using Guava as a replacement, since it is already a project dependency.

* JDK 11 no longer has a separate JRE tree

* Remove unused jdk_nix import

* remove now redundant jdk11_nix

* Java 8 --> 9 increased Instant.now() precision

See https://bugs.openjdk.java.net/browse/JDK-8068730

The precision of `Instant.now()` increased between Java 8 and Java 9.
On Linux and MacOS this doesn't seem to be a problem, as the precision
still seems to be at micro seconds. However, on Windows this now causes
errors of the following form:
```
java.lang.IllegalArgumentException: Conversion of Instant
2021-11-05T13:58:56.726875100Z to microsecond granularity would result
in loss of precision.
```
Suggesting that it now offers sub-microsecond precision.

`TimestampConversion.instantToMicros` had a check to fail if the
conversion lead to a loss of precision. In the specific failing test
case this is not a concern, so this adds a `roundInstantToMicros`
variant that avoids this kind of error.

* TMP round timestamps

* Revert "TMP round timestamps"

This reverts commit af8e261278.

* Skip versions before 1.6.0 in migration tests

changelog_begin
changelog_end

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-11-18 14:48:37 +00:00
..
cli-opts Simplify loading of logback file (#10592) 2021-08-17 08:46:37 +00:00
db-backend replace OneAnd party Sets with NonEmpty Set (#11420) 2021-10-28 15:23:12 +00:00
fetch-contracts Factor kind projector target into a variable (#11759) 2021-11-18 09:51:43 +01:00
http-json Update to Java 11 (#11512) 2021-11-18 14:48:37 +00:00
http-json-cli [TS-Bindings] Changes to re-enable ws multiplexing (#11681) 2021-11-15 22:57:21 +05:30
http-json-ledger-client [JSON-API] Use the token from incoming requests to update the package list (#10602) 2021-09-03 10:12:01 +00:00
http-json-oracle Factor kind projector target into a variable (#11759) 2021-11-18 09:51:43 +01:00
http-json-perf Factor kind projector target into a variable (#11759) 2021-11-18 09:51:43 +01:00
http-json-testing Update to Java 11 (#11512) 2021-11-18 14:48:37 +00:00
jwt Drop 2.12 versioned_scala_deps (#11748) 2021-11-17 22:13:08 +00:00
lf-value-json Drop ContractId typeparameter from Value (#10827) 2021-09-16 08:46:57 +00:00
utils [JSON-API] Use the token from incoming requests to update the package list (#10602) 2021-09-03 10:12:01 +00:00