daml/nix
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
..
certs Remove custom truststore remains (#280) 2019-04-08 11:19:44 +02:00
nixpkgs Upgrade nixpkgs (#11490) 2021-11-02 15:52:55 +01:00
overrides Update scalafmt to 3.0.6 (#11178) 2021-10-08 13:36:36 +00:00
tools Remove trace_context field from Ledger API [KVL-1021] (#10256) 2021-07-15 19:06:25 +02:00
bazel-cc-toolchain.nix Hermetic nixpkgs_cc_toolchain (#5976) 2020-05-18 18:03:51 +02:00
bazel-cc-wrapper-response-file.patch Upgrade to Bazel 4.0 (#8798) 2021-02-11 10:08:47 +01:00
bazel-retry-cache.patch Bazel cache retry on connection reset by peer (#11445) 2021-10-28 11:29:17 +00:00
bazel.nix Upgrade to Postgres 10 (#11751) 2021-11-18 10:03:01 +01:00
BUILD.bazel update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
default.nix Update to Java 11 (#11512) 2021-11-18 14:48:37 +00:00
nixpkgs.nix Upgrade to Postgres 10 (#11751) 2021-11-18 10:03:01 +01:00