daml/language-support/scala
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
..
bindings Update to Java 11 (#11512) 2021-11-18 14:48:37 +00:00
bindings-akka [ledger-api] Include the completion offset in the command_service.proto responses [KVL-1171] (#11658) 2021-11-18 04:37:26 -08:00
bindings-akka-testing Upgrade Scalatest to v3.2.9. (#10576) 2021-08-12 23:19:35 +00:00
codegen Factor kind projector target into a variable (#11759) 2021-11-18 09:51:43 +01:00
codegen-sample-app Factor kind projector target into a variable (#11759) 2021-11-18 09:51:43 +01:00
codegen-testing Factor kind projector target into a variable (#11759) 2021-11-18 09:51:43 +01:00
examples Remove trace_context field from Ledger API [KVL-1021] (#10256) 2021-07-15 19:06:25 +02:00