Skip to content

1.0.0

Choose a tag to compare

@fabiangftech fabiangftech released this 22 Nov 12:35
· 60 commits to main since this release

The first stable release. The API is the same as in 1.0.0-RC4, and from this release on the compatibility promise applies: within 1.x, the Java API stays binary and source compatible, code generated by a processor runs on every later 1.x runtime, and the annotations, configuration keys, integration properties, metric names and tags, snapshot JSON and error codes are kept. Since 1.0.0-RC4 there are only fixes, below. Coming from 0.13.0, read the release candidates too: 1.0.0-RC1 has the two small API changes (an event renamed, two constants no longer public), and four behaviours change: a missing annotation processor is reported instead of leaving beans unprotected (1.0.0-RC2), the circuit breaker records Errors as failures and type-level annotations that protect nothing are a compile error (1.0.0-RC3), and the circuit breaker no longer records the rejections of the method's own bulkhead, rate limiter or adaptive limit (1.0.0-RC4).

Fixed

  • resilience4cata-config ignores a UTF-8 byte order mark at the start of a properties file or classpath resource, as Windows editors may write one. It was read as part of the first key, which then failed as an unknown key (R4C-CFG-001) whose suggestion was the same key.
  • The processor's order next to Lombok no longer matters. With resilience4cata listed before Lombok on the processor path, an annotated class with @RequiredArgsConstructor got a subclass calling a super() that Lombok had removed, and a @Value class was not reported as final. A class that uses Lombok annotations is now processed in the next round, after Lombok (With Lombok).
  • The Eclipse compiler (ECJ), which Eclipse, VS Code and IntelliJ IDEA set to compile with Eclipse use, got different results from javac: an instance id named …(Holder<V>.Inner) instead of …(Holder.Inner) for a parameter whose type is an inner class of a generic class (a different configuration key and metric tag), valid generic fallbacks rejected with R4C-FB-002 or R4C-FB-003 when a bound has a wildcard or an intersection, generated code that did not compile for a Collection<? super T> parameter, and differently numbered generated fields. The processor now writes the same files under both compilers.
  • In a GraalVM native image, R4C-CFG-003 (a class named in the configuration not found) shows the reachability metadata entry to add: the image finds only classes registered for reflection (Native image).

Changed

  • resilience4cata-opentelemetry depends on io.opentelemetry:opentelemetry-api 1.62.0, the oldest version that Spring Boot 4.1, Quarkus 3.40 and Micronaut 5.2 ship, instead of 1.67.0, so it no longer raises an application's OpenTelemetry version; its tests run on 1.62.0 and on the latest (OpenTelemetry).
  • Tests: the CI builds a native image of a plain Java application with no framework and runs its tests inside it, next to the Spring Boot, Micronaut and Quarkus ones (Native image).
  • Documentation: a timeout's precision assumes the process gets CPU, since under a container CPU limit a throttled JVM is interrupted only when it runs again; a starved cold start can open the circuit breaker through real timeouts (Troubleshooting). Both measured by the pilot under a CPU limit (Benchmarks).

Install: dev.resilience4cata:resilience4cata-bom:1.0.0 (installation). Full changelog: https://resilience4cata.dev/en/changelog