Repository navigation
Micronaut Core 5.3.0 adds development mode with continuous testing, functional routes that can be declared in the main method, non-blocking request body, filter and client APIs that don't require Reactor, named retry policies and circuit breakers, new load-balancing strategies, HTTP/3 on the HTTPS port, the PROXY protocol, post-quantum TLS, many performance improvements, and a Python type checker and static compiler.
Important
5.3.0 tightens several security defaults: forwarded headers, the Host check on loopback servers, and cross-origin requests to endpoints. Read Breaking Changes and Migration below before upgrading, especially if your application runs behind a reverse proxy or calls localhost from a browser.
Full documentation: User Guide · What's New · Breaking Changes
Highlights
- Development Mode and Continuous Testing:
./gradlew mnDev,mvn mn:dev - Functional Routes and
HttpApplication - Non-Blocking Bodies, Filters and Clients Without Reactor
- Named Retry Policies and Shared Circuit Breakers
- Client-Side Load Balancing: Strategies, Outlier Detection, Active Health Checks
- HTTP Server: HTTP/3, PROXY Protocol, Post-Quantum TLS, Static Resources, Zero-Copy Files
- HTTP Client: TLS to Proxies, Custom TLS, Graceful Shutdown, HTTP/2 Window
- Performance
- Python: Type Checking, Static Compilation and More
- Dependency Injection, AOP and Startup
- Breaking Changes and Migration
Development Mode and Continuous Testing (experimental)
With development mode, the application keeps running while you edit it. Each change is compiled inside the running JVM and applied in the cheapest way that works:
- Method body edits are patched into the running JVM in place, with no restart.
- Structural changes restart the application context on a new class loader. This covers new classes, changed signatures or annotations, and beans added or removed. The JVM and the warm compilers stay. So do the resources you choose to keep, such as connection pools, the HTTP server's listening socket and idle HTTP client connections.
- Requests made during a reload wait for it and are then served, instead of failing.
- Configuration files, templates, static files, message bundles and the Logback configuration are refreshed without a restart. The browser reloads itself through LiveReload.
- Incremental compilation works for Java, Groovy, Kotlin 2.4+ with KSP, and Python (Pyronaut). A broken edit leaves the running application as it was and shows the compiler errors in the browser.
./gradlew mnDev # Micronaut Gradle plugin
mvn mn:dev # Micronaut Maven plugin
pyronaut dev # PyronautContinuous testing uses the same runtime. On each change it runs only the tests the change can affect, plus the tests that failed last time. It writes Surefire-style JUnit XML and serves a live HTML report that puts failures first and links stack frames to your sources. Any JUnit Platform engine works, including Jupiter, Spock and pytest.
./gradlew mnTest # continuous
./gradlew mnTest --tests 'example.*' # only matching tests
mvn mn:test -Dtest=HelloTest
pyronaut test -tKeeping expensive beans across restarts: annotate a bean or factory method with @Retain. The bean is released again when the configuration it was built from changes:
@Factory
public class PooledDataSourceFactory {
@Context
@Retain(invalidatedBy = "datasources")
public DataSource dataSource() { ... }
}Securing the development pages:
- The server binds to
localhost. - The development pages need a per-launch access token. The startup log prints a link that carries it.
- Only local
Hostnames are answered.
For module authors:
WatchableBeanContextlets a bean watch the definitions, methods, configuration and resources it derives state from.micronaut-dev-tcktests that a module follows a reload across two real generations.
📖 Development Mode · Starting it · Continuous Testing · Watch API · Supported Builds and Limitations
(#13517, #13536, #13538, #13540, #13541, #13548, #13552, #13561, #13575, #13589, #13592, #13594, #13599, #13615, #13616, #13655, #13706, #13884, #14331–#14361 and others)
Functional Routes and HttpApplication (experimental)
Routes can be declared in code with an HttpRoutes bean, as an alternative to controller methods. Functional routes go through the same pipeline as controllers: binding, codecs, content negotiation, filters, CORS, error handling and executors. You can do the following:
- Group routes under prefixes.
- Attach filters per route, per group or server-wide.
- Choose a route by conditions, including the request body.
- Bind forms.
- Serve static resources.
- Stream server-sent events and handle WebSockets, none of which needs Reactor.
@Singleton
public class HelloRoutes implements HttpRoutes {
@Override
public void routes(HttpRouteBuilder routes) {
routes.GET("/hello/{name}", (request, pathVariables) ->
HttpResponse.ok("Hello " + pathVariables.getString("name"))
.contentType(MediaType.TEXT_PLAIN_TYPE));
}
}For small services, HttpApplication starts the application and declares its routes in the main method. Controllers, filters and configuration still apply:
public static void main(String[] args) {
HttpApplication.run(args, routes ->
routes.GET("/hello/{name}", (request, vars) ->
HttpResponse.ok("Hello " + vars.getString("name"))
.contentType(MediaType.TEXT_PLAIN_TYPE)));
}Server-sent events. send returns a CompletionStage that paces the output to slow clients:
routes.GET("/countdown/{from}").executeOn(TaskExecutors.BLOCKING).sse((request, pathVariables, events) -> {
for (int i = pathVariables.getInt("from"); i > 0; i--) {
events.send(Event.of(i).id(String.valueOf(i))).toCompletableFuture().join();
}
});WebSocket routes. Groups, filters and conditions apply to the upgrade request:
routes.GET("/echo/{name}").webSocket(ws -> ws
.onOpen((session, request) ->
session.sendAsync("Hello " + session.getUriVariables().get("name", String.class).orElseThrow()))
.onMessage(String.class, (session, message) -> session.sendAsync("echo " + message))
.onClose((session, reason) -> null));Static resources and routes chosen by the request body:
routes.GET("/assets").resources(StaticResources.classpath("public/assets")
.cacheControl("public, max-age=31536000, immutable"));
routes.POST("/orders")
.where(RequestCondition.body(ORDER, order -> "express".equals(order.get("kind"))))
.order(-1)
.body(ORDER)
.handle((request, pathVariables, order) -> HttpResponse.ok("express order " + order.get("id")));Route locators find a target, such as a tenant or a shop, at request time and route the rest of the path to the routes of that target. Locators can be asynchronous (locateAsync), blocking on a named executor (locateOn), or read the body first.
Route templates let integrations such as JAX-RS declare routes in their own template language.
📖 Functional Routes · In the main method · Streaming · WebSocket · Static Resources · Locators · Templates
(#13311, #14306, #13373, #13371, #13369, #13961, #13470, #14011, #14078, #13328, #14193)
Non-Blocking Bodies, Filters and Clients Without Reactor
5.3 has CompletionStage-based counterparts for the main reactive APIs. An application can be fully non-blocking without Reactor on its request path.
AsyncRequestBody. Controllers and filters can read the body without blocking: as a type, as text or bytes, as pulled JSON elements, as a form or as multipart parts, or by transferring it to a file. Forms bind as FormData, FormParts/FormPart and FileUpload:
@Post
public CompletionStage<HttpResponse<Person>> save(AsyncRequestBody body) {
return body.body(Person.class)
.thenCompose(this::store)
.thenApply(HttpResponse::created);
}Any server filter can read the body. It calls AsyncRequestBody.of(request).copy() and still leaves the body for the route:
@RequestFilter
@PreMatching
public CompletionStage<@Nullable HttpResponse<?>> verify(HttpRequest<?> request) {
String expected = request.getHeaders().get("X-Content-SHA256");
return AsyncRequestBody.of(request).copy()
.bytes(1024 * 1024)
.thenApply(bytes -> sha256(bytes).equals(expected) ? null : HttpResponse.badRequest("Checksum mismatch"));
}Around filters with CompletionStage continuations:
@RequestFilter
CompletionStage<HttpResponse<?>> around(FilterContinuation<CompletionStage<HttpResponse<?>>> continuation) {
return continuation.proceed()
.thenApply(response -> ((MutableHttpResponse<?>) response).header("X-Around", "around"));
}Per-request callbacks. ServerHttpRequest.whenResponseCompleted(...) and whenAbandoned(...) let a route react to its own outcome or to the client disconnecting.
Async clients:
AsyncWebSocketClientAsyncStreamingHttpClient, whose response bodies are pulled through aBodyElementscursor instead of aPublisherAsyncProxyHttpClientCompletionStageload balancers and discovery clients (AsyncLoadBalancer,AsyncDiscoveryClient)FunctionInvoker.invokeAsync
Declarative clients can return CompletionStage<BodyElements<T>>:
@Client("/streaming")
public interface AsyncHeadlineClient {
@Get(value = "/headlines", processes = MediaType.APPLICATION_JSON_STREAM)
CompletionStage<BodyElements<Headline>> streamHeadlines();
}exchangeEventStream. Some protocols, such as MCP Streamable HTTP, answer with either a JSON body or text/event-stream. For those, SseClient.exchangeEventStream and its async form give each event together with the status and headers of the response.
📖 Async Request Body · Form Uploads · Reading the Body in Filters · Continuations · WebSocket Client · Streaming Clients · Proxy Client
(#13467, #14015, #13758, #13280, #14009, #13751, #13728, #13714, #13764, #13759, #13766, #13732, #13736, #13744, #13745, #13773, #14478)
Named Retry Policies and Shared Circuit Breakers
You can now configure retry settings once and share them by name. A member set on the annotation overrides only that setting of the policy:
micronaut:
retry:
policies:
books:
attempts: 5
delay: 200ms
multiplier: 2
max-delay: 10s
jitter: 0.1
includes:
- java.io.IOException@Retryable(name = "books")
public Book findBook(String title) { ... }
@Retryable(name = "books", attempts = "1") // overrides attempts only
public Book getBook(String title) { ... }The same policies are available in code through the RetryRegistry bean.
Circuit breakers shared by name. All @CircuitBreaker(name = "...") methods with the same name share one circuit. So do programmatic users of CircuitBreakerRegistry.circuitBreaker(name). A circuit can also open based on a rolling window of outcomes, using MicroProfile Fault Tolerance semantics:
@CircuitBreaker(name = "pricing", attempts = "1", reset = "30s",
requestVolumeThreshold = "4", failureRatio = "0.5",
successThreshold = "2", skipOn = NoSuchElementException.class)
public BigDecimal price(String sku) { ... }Guards. A caller that runs the operation itself, such as a proxy, can use CircuitBreakerRegistry.guard(name). It only reports the outcome, through a Permit.
Constant stack depth. Reactive retries now run in constant stack space, so a large number of attempts no longer overflows the stack.
📖 Retry Advice
(#13500, #13504, #14629)
Client-Side Load Balancing
Strategies per service. You no longer need a custom LoadBalancer to choose how instances are picked. The built-in strategies are round-robin (the default), random, p2c (power of two choices), weighted and sticky. You can also register your own LoadBalancerStrategy bean.
micronaut:
http:
services:
foo:
urls:
- http://foo1
- http://foo2
load-balancer-strategy: sticky
load-balancer-key-header: X-Session-IdOutlier detection. The clients report the outcome of every load-balanced exchange. An instance that keeps failing is ejected for a while, with an ejection time that grows on repeated ejections. You can inspect the state with LoadBalancer.getOutlierEjectionStates().
micronaut:
http:
services:
foo:
outlier-detection:
enabled: true
consecutive-failures: 5
base-ejection-time: 30s
max-ejection-time: 5m
max-ejection-percent: 50Active health checks. These now also cover instances that a discovery client finds. Set health-check: true for a service id without urls.
Connection pools. Unused per-host pools are evicted, and the HTTP/2 pool respects the server's SETTINGS_MAX_CONCURRENT_STREAMS.
📖 Client Side Load Balancing · Manual Service Discovery
(#13513, #13409, #13502, #14546, #13606, #13419)
HTTP Server
HTTP/3 on the HTTPS port. One setting serves HTTP/3 (QUIC) on the UDP port with the same number as the HTTPS port, next to HTTP/1.1 and HTTP/2. Responses advertise it with Alt-Svc. This requires TLS 1.3 and micronaut-http-netty-http3.
micronaut:
server:
ssl:
enabled: true
port: 8443
netty:
http3:
enabled: truePROXY protocol v1/v2. Behind TCP load balancers such as an AWS NLB or HAProxy in mode tcp, the server can read the real client address from the PROXY protocol header. You can enable it for the whole server or per listener:
micronaut:
server:
netty:
proxy-protocol: truePost-quantum TLS key exchange. key-exchange-groups sets the TLS named groups in order of preference. Putting the hybrid X25519MLKEM768 group first protects new connections against later quantum decryption. pqc-policy (none, relaxed or strict) enforces a requirement on top. Both settings are available under micronaut.ssl, micronaut.server.ssl and micronaut.http.client.ssl.
micronaut:
server:
ssl:
protocols:
- TLSv1.3
key-exchange-groups:
- X25519MLKEM768
- x25519
- secp256r1
pqc-policy: relaxedPre-compressed and cached static resources. Static resources can be served from build-time siblings such as app.js.br, app.js.zst and app.js.gz, chosen by the Accept-Encoding header. Each encoding gets its own ETag. Small resources can be cached in memory. In the guide's load test, the cache served 39–76% more requests per second.
micronaut:
router:
static-resources:
default:
paths: classpath:public
mapping: /**
pre-compressed: true
cache-max-entries: 256
cache-max-entry-size: 65536Zero-copy file responses. File and SystemFile responses, file-system static resources and 206 ranges are sent with sendfile, without passing through the JVM heap. This applies to HTTP/1.x without TLS or compression, and is on by default. Disable it with micronaut.server.netty.zero-copy-file-responses: false.
@ContentDisposition. This annotation sets an RFC 6266-encoded Content-Disposition header on a response declaratively, whatever the return type:
@ContentDisposition(filename = "report.csv")
@Get(value = "/report", produces = MediaType.TEXT_PLAIN)
public String report() {
return "name,amount\nwidget,42";
}Also new:
%{name}rlogs a request attribute in the access log, for example%{routeId}r.- A pluggable compression codec SPI (
NettyZlibCodecFactory) lets native providers supply Brotli, Zstandard and Snappy. - Opt-ins for proxies and gateways:
http10-keep-aliveandreject-unsupported-http-versions. - An oversized request target now gets
414 URI Too Long.
📖 HTTP/3 · PROXY Protocol · HTTPS and Post-Quantum Key Exchange · Static Resources · File Transfers · @ContentDisposition · Access Logger · Netty Extensions
(#14589, #14534, #14592, #14531, #14591, #12949, #13501, #14112, #14119, #13507, #14639)
HTTP Client
TLS to the HTTP proxy. With proxy-ssl set, the CONNECT request, the proxy credentials and the tunnelled bytes travel over TLS to the proxy instead of in plaintext. It is also available per service.
micronaut:
http:
client:
proxy-type: http
proxy-address: proxy.example.com:3129
proxy-ssl:
trust-store:
path: classpath:proxy-truststore.p12
password: secret
type: PKCS12Custom TLS:
ssl.endpoint-identification: falsenow really disables the HTTPS host check.SslConfiguration.setSslContext(...)connects with an existingSSLContext.- A
HostnameVerifiercan run after the handshake. - On the server,
micronaut.server.ssl.context-namenames anSSLContextbean to serve with.
Graceful shutdown. With micronaut.lifecycle.graceful-shutdown.enabled: true, context-managed Netty clients let in-flight requests finish and close idle connections right away.
HTTP/2 receive window. micronaut.http.client.http2.initial-window-size now defaults to 1 MiB, up from the protocol's 64 KiB. This removes a throughput cap on high-latency downloads.
Also new: DefaultHttpClientBuilder.eventLoopOf(...) lets a client share another client's event loop.
📖 Forward Proxy · Netty HTTP Client · Graceful Shutdown · HTTP/2 Client
(#14587, #14005, #14026, #14590, #13994, #14066)
Performance
5.3 includes a broad optimization pass over the HTTP server, bean context and annotation metadata. Selected numbers from the PRs are below; they are JMH or load-test figures, so treat them as indicative.
| Area | Result | PR |
|---|---|---|
| Small-piece streamed JSON responses | throughput roughly doubled (≈19k → 39k req/s), p99 ≈1.0 → 0.5 ms | #13643 |
Flux<byte[]> responses (512 MiB heap) |
13.6k → 39.8k req/s | #13646 |
@Body Flux<Item> requests |
10.6k → 14.2k req/s | #13647 |
| Plain request path | ≈15% fewer bytes per request, 5–7% faster | #13648 |
| JSON stream reads | up to 2.65× faster, 4.59× less allocation | #14618 |
| Request argument binding | 1.42× faster, 2.30× less allocation; @QueryValue −23%, @Header −36% |
#14617, #14170 |
| Multipart file uploads | ≈21–23% faster | #14621 |
BeanProvider.get() of a singleton |
36.8 → 14.5 ns, 296 → 32 B/op | #14367 |
publishEvent with no matching listener |
251 → 5.8 ns, 0 B/op | #14393 |
| Warm context start/resolve/stop | −19% time, −17% allocation | #14471, #14473 |
AnnotationValue equality/matching |
25.7 → 1.2 ns / 217 → 1.4 ns | #14065 |
Static resource caching (above) and zero-copy file transfers also cut per-request work.
Python
Python support (GraalPy, Pyronaut) gains compile-time tooling and more natural Java interop.
Type checking (experimental). Decorators are checked against the Java annotations they stand for. So are calls, attribute reads and constructions on Java receivers and on the Python classes of the compilation. Each problem is reported at its source location with a rule ID and, where possible, a suggestion. Set the mode with the processor option micronaut.python.typecheck (off, warn or error). Override it per module, class or function with @TypeChecked:
from jakarta.inject import Singleton
from micronaut.context.python.annotation import TypeChecked
@Singleton
class OrderService:
@TypeChecked # checked even when the compilation mode is off
def place(self, order: str) -> str:
return order.strip()Static compilation (experimental). With @CompileStatic (or micronaut.python.compile.static), function bodies are compiled to Java bytecode. Java callers, such as HTTP routes and injected services, run the compiled code instead of entering GraalPy.
- A report explains every decision.
- Stack traces map back to the Python file and line.
- A compiled route that never enters Python runs on the event loop, and
@ExecuteOnis honoured. - In the PRs, a numeric route moved to the event loop went from 66.7k to 84.6k req/s, with p99 down from 128 ms to 5.2 ms (#14144).
from jakarta.inject import Singleton
from micronaut.context.python.annotation import CompileStatic
@Singleton
@CompileStatic
class PricingService:
def __init__(self, rate: float):
self.rate = rate
def total(self, quantity: int, unit_price: float) -> float:
return quantity * unit_price * self.rateAlso new:
- Annotations as parameter defaults, which Python type checkers accept:
trace: str = Header("X-Trace"). Several can be combined with&, andctx: ApplicationContext = Inject()injects a bean. Annotatedtype aliases carry their metadata wherever they are used.- Every
@dataclassis introspected automatically;ClassVarattributes are excluded. - Snake_case aliases (
request.basic_auth(...)) and getter properties (server.port) for Java instance members. - A
PythonImportMapperSPI for curated modules that gather several Java packages behind one import, with snake_case annotation aliases.
📖 Type Checking · Static Compilation · Decorators · Keywords and Java Members
(#13269–#13286, #13288–#13321, #13405–#13515, #14125–#14145, #13753, #13786, #13796, #13810, #14035, #13722–#13724, #13978)
Dependency Injection, AOP and Startup
Per-target interceptors. With @Around(proxyTarget = true, lazyInterceptorsPerTarget = true), a proxy resolves its interceptors for each target it fronts. A non-singleton interceptor then belongs to its target and is destroyed with it. Such an interceptor can inject InterceptionTarget (experimental) to find out which bean it intercepts:
@Prototype
@InterceptorBean(Labelled.class)
public class LabelInterceptor implements MethodInterceptor<Object, String> {
private final String label;
public LabelInterceptor(InterceptionTarget target) {
this.label = target.definition().getBeanType().getSimpleName();
}
@Override
public String intercept(MethodInvocationContext<Object, String> context) {
return "[" + label + "] " + context.proceed();
}
}Which schedule fired. A @Scheduled method can take a ScheduledExecution parameter that tells it which of its schedules fired:
@Scheduled(fixedDelay = "1h", initialDelay = "10ms")
@Scheduled(fixedDelay = "2h", initialDelay = "50ms")
void twice(ScheduledExecution execution) {
String delay = execution.schedule().stringValue("initialDelay").orElse("");
}Bean resolution tracing (experimental). You can plug in your own BeanResolutionTracer, for example to time each bean's creation as a span:
try (ApplicationContext context = ApplicationContext.builder()
.beanResolutionTracer(new TimingTracer())
.start()) {
context.getBean(Greeter.class);
}Allowed values in the JSON schema. @AllowedValues on a configuration property becomes the enum of the property in the generated JSON schema, for IDE completion and validation:
@ConfigurationProperties("my.consumer")
public class ConsumerConfiguration {
@AllowedValues({"earliest", "latest", "none"})
private String autoOffsetReset = "latest";
}Training runs. AOT caches, CDS archives, PGO profiles and the native-image agent all need the JVM to exit after a representative run. With the training switch on, the application starts, optionally sends itself warm-up requests, and exits with status 0. Never set this switch on a deployment target.
java -XX:AOTCacheOutput=app.aot \
-Dmicronaut.application.training.enabled=true \
-Dmicronaut.application.training.warmup.paths=/hello \
-jar app.jarAnimated startup banners. With BannerMode.ANIMATED or MICRONAUT_BANNER_MODE=animated, terminals such as Kitty, iTerm2 and WezTerm play an animated logo, or your own META-INF/micronaut/banner.svg. The frames are rendered in the background, so startup is not delayed.
Also new:
@Introspected(hierarchy = true)records a type's hierarchy at compile time and answers hierarchy queries without reflection.@RegisterAnnotationsgenerates annotation builders, so annotation instances can be created withoutjava.lang.reflect.Proxy.TypeElementVisitor#finishRound/finishCompilationandVisitorContext#registerBeanlet visitors register beans for any type, library classes included (experimental).- Executor beans now propagate the context without
micronaut-context-propagation, and Kotlin coroutines work inscoped-valuepropagation mode. - A configuration
Mapkeyed by an enum can now have@EachProperty/@EachBeanvalues. - SnakeYAML's
maxAliasesForCollectionslimit can be set with the system propertymicronaut.config.yaml.max-aliases-for-collections. - Bean definitions can be prefetched in parallel at startup:
Micronaut.build(args).beanDefinitionPrefetchEnabled(true)(experimental).
📖 Interceptor Lifecycle · Scheduling · Bean Resolution Tracers · Introspection Hierarchy · Configuration Properties · Training Run · Banner · Context Propagation
(#13254, #13774, #13574, #13886, #13862, #13402, #14305, #13783, #13632, #14055, #13777, #14294, #13842, #13865, #13180, #14077, #13644, #13954)
Breaking Changes and Migration
The full list, with migration notes, is in the Breaking Changes section of the guide. The changes most likely to affect you:
Security defaults
| Change | Who is affected | Restore the old behaviour |
|---|---|---|
Host resolution ignores Forwarded / X-Forwarded-* headers by default (#14578) |
Apps behind a reverse proxy whose generated URLs or HTTPS redirects rely on forwarded headers | Enable only the header family that your trusted proxy overwrites: micronaut.server.host-resolution.allow-forwarded: true and/or allow-xforwarded: true |
A server bound to a loopback address answers only local Host names, otherwise 421 (#14632) |
Loopback-bound apps reached through another host name | List the names in micronaut.server.allowed-hosts-on-loopback, or set micronaut.server.loopback-host-check: false |
Requests from another origin get 403 on management endpoints, on @SameOrigin routes and on loopback servers (#14623) |
Front-end dev servers (e.g. localhost:3000) calling a localhost app; dashboards calling endpoints from another origin |
Add a CORS configuration that names the origin, or set micronaut.server.cors.origin-check: none |
URL-encoded forms with a malformed percent escape get 400 (#14058) |
Clients that send %GG or a bare % |
micronaut.server.netty.form-lenient-percent-decoding: true |
Behaviour changes
- Construct advice (#13556): a
ConstructorInterceptornow wraps only the constructor call. Injection and@PostConstructrun afterwards, as in Jakarta Interceptors. If an interceptor relied on injected state, bind it toInterceptorKind.POST_CONSTRUCTinstead. - Filters (#13466): a
voidfilter method that changes the URI of itsMutableHttpRequestnow changes the request seen by later filters and by route matching. Body binding reads the body of the request that the filter continued with. - Route ordering (#13311): a route with a variable without a regular expression now sorts before one with a regex variable, e.g.
/items/{id}before/items/{id:.+}. - WebSockets (#14091):
@ServerWebSocketURIs are now under the server context path. Argument.of(Type)(#14422) keeps wildcards, type variables and generic arrays.asTyperenders an argument exactly (#14081).- Context propagation (#13842): executor beans propagate the context by default. Opt out per executor with
propagate-context: false. - Load balancer health checks (#14546): the client health check now belongs to the load balancer. When every instance is unhealthy, requests go to all of them; set
health-check-all-unhealthy: noneto fail fast as before. - SSE client (#13745): the client's event streams now follow the Server-Sent Events specification. Comments are ignored,
idcarries over to later events, and values are no longer trimmed. max-file-sizenow applies to streamed uploads.- HTTP client:
- Closing the client fails requests that are waiting for a pooled connection.
- The read timeout applies to each HTTP/2 and HTTP/3 stream.
Dependency Upgrades
- GraalVM and GraalPy 25.6.5.1
- Netty 4.2.21, netty-tcnative 2.0.85
- Kotlin 2.4.21 and KSP 2.3.13
- Jackson, Byte Buddy, Brotli4j and micronaut-build 8.2.5
What's Changed
Breaking Changes 🛠
- Keep the request a filter method changed in place, and read the body of the request a filter continued with by @dstepanov in #13466
- Run injection and @PostConstruct after the constructor interceptor chain by @dstepanov in #13556
- Handler routes, route filters and forms by @dstepanov in #13311
- Render an argument exactly in asType by @dstepanov in #14081
- Fix WebSocket route registration: context path, upgrade-only functional routes, pong handler by @dstepanov in #14091
- Reject url-encoded forms with a malformed percent escape by @dstepanov in #14058
- [Breaking change] Ignore Forwarded and X-Forwarded-* headers by default for host resolution by @sdelamo in #14578
- Answer only local hosts on servers bound to a loopback address by @yawkat in #14632
- Reject requests from other origins on endpoints and loopback servers by @yawkat in #14623
New Features 🎉
- Add @ContentDisposition annotation for declarative response headers by @ShubhJ46 in #12949
- Add named retry policies through a RetryRegistry by @dstepanov in #13500
- Share circuit breakers by name and open them by a rolling window by @dstepanov in #13504
- Add ByteBodyFactory.limit and ByteBodyFactory.replayable by @dstepanov in #13512
- Configurable load balancer strategy per service by @dstepanov in #13513
- Server opt-ins for proxies: skip compression, HTTP/1.0 keep-alive, unsupported versions, forwarded header validation by @dstepanov in #13507
- Log request attributes in the Netty access log with %{name}r by @dstepanov in #13501
- Expose the outlier ejection state of a load balancer by @dstepanov in #13502
- Add a base for bean definitions built from their injection point by @dstepanov in #13570
- Resolve the registration of a chosen bean definition as a given type by @dstepanov in #13567
- Tell a declared type variable from a type resolved in place of one by @dstepanov in #13571
- Destroy a bean registration as a dependent through BeanContext by @dstepanov in #13569
- Expose the scheduled method and schedule that triggered an invocation by @dstepanov in #13574
- Intercept a proxy target with its own interceptors with @around(lazyInterceptorsPerTarget = true) by @dstepanov in #13254
- Tell the shapes of an Argument apart, compare them by structure, and go between an array and its component by @dstepanov in #13581
- Add an opt-in training run that starts, warms up and exits with 0 by @alvarosanchez in #13402
- Generate annotation builders with @RegisterAnnotations by @dstepanov in #13632
- Read the request body asynchronously and bind forms with FormData, FormParts, FormPart and FileUpload by @dstepanov in #13467
- Route requests to the routes of targets located at runtime by @dstepanov in #13470
- Add SseClient.exchangeEventStream for responses that are JSON or an event stream by @graemerocher in #13714
- Functional routes: server-sent events and streamed bodies without Reactor by @dstepanov in #13373
- Add the Python import mapper SPI for curated Python modules by @graemerocher in #13722
- Resolve curated Python module imports in the Python processor by @graemerocher in #13723
- Write curated Python modules at compile time by @graemerocher in #13724
- Python: annotations as parameter defaults, injected parameters and Annotated aliases by @graemerocher in #13753
- Keep the type annotations of array components in the generated Argument by @dstepanov in #13789
- Support CompletionStage filter continuations by @dstepanov in #13758
- Add Argument.withTypeParameters keeping the shape of the argument by @dstepanov in #13778
- Add async SSE and streaming clients: CompletionStage results and pulled response bodies by @dstepanov in #13728
- Resolve owned dependencies from runtime bean creation and disposal contexts by @dstepanov in #13770
- Add AsyncWebSocketClient by @dstepanov in #13751
- CompletionStage counterparts for load balancers and discovery clients by @dstepanov in #13759
- Add TypeElementVisitor#finishRound and VisitorContext#registerBean by @dstepanov in #13777
- Let a per-target interceptor inject the bean it intercepts by @dstepanov in #13774
- Add a service index for JVM service discovery by @alvarosanchez in #13403
- Resolve a chosen bean definition to its registration within the caller's resolution context by @dstepanov in #13900
- Hand a bean resolution customizer the context it serves by @dstepanov in #13899
- CompletionStage counterparts for the management SPIs by @dstepanov in #13762
- Add AsyncProxyHttpClient by @dstepanov in #13764
- Read and create a ByteBody with pulled elements by @dstepanov in #13765
- Functional routes: WebSocket routes without Reactor by @dstepanov in #13371
- Add AnnotationElement.getMembers() listing the annotation interface members by @dstepanov in #13924
- Record generic type hierarchies for non-bean classes by @dstepanov in #13926
- Expose the generic hierarchy of an introspected type through its record by @dstepanov in #13927
- Expose the selection among candidate bean definitions as BeanDefinitionRegistry.selectAmong by @dstepanov in #13919
- Choose functional routes by the body of the request by @dstepanov in #13961
- Route templates: declare routes with parsed templates of any language by @dstepanov in #13328
- Support a provided SSLContext and disabling client endpoint identification by @dstepanov in #14005
- Expose the raw values of path variables and url-encoded form fields by @dstepanov in #14008
- Resolve a dependent at the segment its lookup was injected at by @dstepanov in #14010
- Allow introspections to keep injection points as bean properties by @dstepanov in #14018
- Report the super types a type hierarchy record leaves out when it is recorded by @dstepanov in #14012
- Invoke functions asynchronously without Reactor by @dstepanov in #13766
- Support a client HostnameVerifier checked after the TLS handshake by @dstepanov in #14026
- Write @AllowedValues of a configuration property as the enum of its JSON schema by @graemerocher in #13862
- Add per-request response completion and abandonment callbacks by @dstepanov in #14009
- Static resources for functional routes by @dstepanov in #13369
- Register annotation builders from visitors and read typed members by @dstepanov in #14055
- Find the registration a dependency resolver holds for a bean by @dstepanov in #14079
- Let a route selector rank routes by the path first (406/415 selections, locators behind more specific routes) by @dstepanov in #14017
- Match repeatable interceptor bindings as one group when opted in by @dstepanov in #14086
- Support Python-facing Java instance aliases and getter properties by @n0tl3ss in #14035
- Let any server filter read the request body with AsyncRequestBody.of(request) by @dstepanov in #14015
- Public experimental BeanResolutionTracer SPI for custom bean resolution tracers by @graemerocher in #13886
- Exact interceptor binding qualifier and symmetric non-binding matching by @dstepanov in #14147
- Let a route locator read the body of the request before it locates the target by @dstepanov in #14011
- Make DefaultHttpClientBuilder.handlerRegistry public by @dstepanov in #14176
- make snakeyaml's maxAliasesForCollections configurable by @adamkobor in #14077
- Convert path variables and form fields to primitives without boxing by @dstepanov in #14249
- Animated SVG startup banners with BannerMode.ANIMATED (on top of #14282) by @dstepanov in #14305
- Add HttpApplication to declare functional routes in the main method by @dstepanov in #14306
- Find the proxy of a target bean definition by @dstepanov in #14423
- Keep wildcards, type variables and generic arrays in Argument.of(Type) by @dstepanov in #14422
- Keep values derived from a bean definition on the definition by @dstepanov in #14424
- Create a proxy of a target that exposes only its interfaces by @dstepanov in #14425
- Add configurable TLS key exchange groups and a post-quantum policy by @dstepanov in #14592
- Shut down the HTTP clients gracefully by @dstepanov in #14590
- Send file responses without copying them through the heap by @dstepanov in #14591
- Expose an annotation interface's targets, repeatable container and retention on AnnotationElement by @dstepanov in #13162
- Read Groovy annotation processor options from compiler configuration by @kalayciburak in #13159
- RawRequestOptions, ForwardedHeaders and ProxyHttpClient on the raw client by @dstepanov in #13263
- Report exchange outcomes to the load balancer and eject failing instances by @dstepanov in #13409
- Relay a connection that switches protocols through the raw client and the Netty server by @dstepanov in #13411
- Add fresh bean registrations and explicit dependency groups by @dstepanov in #13601
- Resolve an exact bean definition on behalf of a resolving bean by @dstepanov in #13702
- Let a custom scope lock bean creation per scope map by @dstepanov in #13701
- Automatically introspect Python dataclasses by @n0tl3ss in #13786
- Infer Python dataclass entities from Annotated Data markers by @n0tl3ss in #13796
- MethodReference.hasTargetMethod() by @dstepanov in #13805
- ClassElement.findProxyRestriction() by @dstepanov in #13807
- Describe the type hierarchy on a bean introspection with @introspected(hierarchy = true) by @dstepanov in #13783
- One process, one file watcher, and a launcher that survives a restart by @graemerocher in #13517
- Record which bean received which, and define the reload contract by @graemerocher in #13521
- Let chosen singletons survive a restart of the application context by @graemerocher in #13530
- Add the micronaut-dev module: manifest, generation loaders, change detection and an incremental javac by @graemerocher in #13536
- Let beans watch the definitions, methods, configuration and resources they derive state from by @graemerocher in #13538
- Run an application behind a reloadable class loader and restart it as its sources change by @graemerocher in #13540
- Refresh the browser when the application restarts or a static file changes by @graemerocher in #13541
- Compile Groovy sources with the project's own Groovy, on the flow every embedded compiler shares by @graemerocher in #13547
- Apply an edit to method bodies in place instead of restarting by @graemerocher in #13548
- Look up introspection and executable arguments by name by @jochenseeber in #13394
- BeanRegistration.hasOwnLifecycle() by @dstepanov in #13806
- Python: report every problem of a source as a located diagnostic by @graemerocher in #13270
- Python: type-check mode, the TypeChecked switch and the checker's two passes by @graemerocher in #13274
- Python: type-check the decorators of classes and functions against their Java annotations by @graemerocher in #13275
- Python: type-check calls, attribute reads and constructions on Java receivers by @graemerocher in #13284
- Python: type-check calls, attribute reads and constructions on the Python classes of the compilation by @graemerocher in #13285
- Refresh a changed configuration file in place, and restart only when a watch says so by @graemerocher in #13552
- Watch the scheduled methods and the server's configuration instead of processing events by @graemerocher in #13558
- Watch the mappers, the endpoints, the circuit breakers and the static resources instead of processing them once by @graemerocher in #13559
- Compile Kotlin sources through the Build Tools API, with KSP first, on the flow every embedded compiler shares by @graemerocher in #13561
- Add micronaut-dev-tck, a harness and assertions a module runs against two generations of the development runtime by @graemerocher in #13575
- Compile Python modules in development mode with the Pyronaut compiler, their Java sources jointly by @graemerocher in #13589
- Add a pluggable test runner to micronaut-dev, with a JUnit Platform runner and JUnit XML reports by @graemerocher in #13592
- Add test mode to micronaut-dev: compile a change, run the tests it affects on a new generation, report as JUnit XML by @graemerocher in #13594
- Serve mounted directories and an event channel from the LiveReload server, for pages such as a live test report by @graemerocher in #13595
- Python: export facade annotations under their snake_case names by @graemerocher in #13978
- Add locateOn to run a route locator that may block on a named executor by @dstepanov in #14078
- Let a client built with DefaultHttpClientBuilder share the event loop of another client by @dstepanov in #14066
- micronaut-dev: live HTML test report module (micronaut-dev-test-report) by @graemerocher in #13599
- micronaut-dev test mode: run source-discovered tests (pytest), brandable live report by @graemerocher in #13610
- Dev mode: patch a body-only Python edit into the running interpreters instead of starting a new generation by @graemerocher in #13615
- micronaut-dev: generation budget and relaunch status, run in a native image by @graemerocher in #13616
- Python: static compilation mode, the CompileStatic switch, the planner and its report by @graemerocher in #13288
- Python: compile statically dispatched function bodies to Java inside the stubs by @graemerocher in #13290
- Python: run the Java body of a compiled method from Python callers too by @graemerocher in #13291
- Python: compile loops, break and continue, raise and try by @graemerocher in #13293
- Python: compile list, set, dict and str operations and the common builtins by @graemerocher in #13294
- Python: compile calls of sibling methods and reads of properties of the class by @graemerocher in #13299
- Python: statically compile module routes, advised methods and calls on the objects of the compilation by @graemerocher in #13312
- Python: statically compile introduction advice from the caller to the interceptor by @graemerocher in #13318
- Python: compile module-level functions, static methods and comprehensions by @graemerocher in #13405
- Python: raise and catch Python exception classes in statically compiled bodies by @graemerocher in #13412
- Python: map stack traces of compiled bodies to the Python file and line by @graemerocher in #14127
- Python: read attributes fixed at construction from Java by @graemerocher in #14128
- Python static compilation: honour @ExecuteOn and keep compiled routes that never enter Python on the event loop by @graemerocher in #14144
- Dev mode: hold requests across a restart, drain the stopping generation, 503 instead of an NPE by @graemerocher in #13655
- micronaut-dev: a FileWatcher bean backed by the development runtime's single watcher by @graemerocher in #13664
- micronaut-dev: reload routes in place through a development-only forwarding router, and prove every route kind reloads on restart by @graemerocher in #13706
- micronaut-dev: retain the HTTP servers' and clients' event loop groups across restarts until their configuration changes by @graemerocher in #13757
- micronaut-dev: let a retention policy refuse a bean that @retain or micronaut.dev.retain would keep, and add Environment.isDevelopmentMode() by @graemerocher in #13824
- micronaut-dev: release a retained bean when the configuration it was built from changes, without naming every prefix in @retain by @graemerocher in #13837
- Add Argument.substituteTypeVariables by @dstepanov in #14215
- micronaut-dev: let server runtimes outside micronaut-dev hold requests while a development batch compiles and restarts, through RequestAdmission by @graemerocher in #13838
- Keep the idle HTTP client connections across development mode restarts by @graemerocher in #13873
- Guard the development pages with allowed hosts and a per-launch access token, and bind to localhost by default by @graemerocher in #13884
- Produce beans from non-public members and primitive products in BeanElementBuilder.produceBeans by @dstepanov in #14217
- Add an experimental streaming zlib codec factory by @dstepanov in #14112
- Expose TLS policy and legacy context construction hooks by @dstepanov in #14115
- Allow Netty listeners to borrow named event loop groups by @dstepanov in #14116
- Allow native providers to supply Brotli Zstandard and Snappy HTTP codecs by @dstepanov in #14119
- Allow codec providers to create WebSocket compression handlers by @dstepanov in #14121
- Allow server-sent events without data by @dstepanov in #14299
- Add BeanIntrospector.withoutFallbacks() and BeanIntrospection.isGenerated() by @dstepanov in #14318
- Expose the headers and content type of the parts of a multipart form by @dstepanov in #14301
- Add TypeHierarchy.getSuperType and indexOfVariable by @dstepanov in #14319
- Development mode: inject the LiveReload script into @view pages and other pages a body writer renders by @graemerocher in #14343
- Development mode: serve an edited message bundle without a restart by @graemerocher in #14342
- Expose whether a property member is read reflectively or is synthetic by @dstepanov in #14320
- Add TypeElementVisitor#finishCompilation to register beans once every round is over by @dstepanov in #14294
- Resolve a bean method's override hierarchy from introspections by @dstepanov in #14321
- Tell which bean definitions a class change touches by @graemerocher in #14408
- Add BeanIntrospector.findIntrospectedType(String) by @dstepanov in #14464
- Add RawRequestOptions.closeOnDiscard by @dstepanov in #14476
- Add a public header value tokenizer and HttpHeaders.acceptLanguages() by @dstepanov in #14477
- Add a transport-neutral multipart reader with limits by @dstepanov in #14478
- Report where route captures are in the path and declare locators with a parsed prefix by @dstepanov in #14479
- Keep the raw values of a form as its raw view and run form locators on an executor by @dstepanov in #14481
- Resolve a chosen bean definition for a qualifier by @dstepanov in #14485
- Add ByteBodyFactory.streaming(Executor, writer) by @dstepanov in #14480
- Let beans select the message body reader or writer of a lookup by @dstepanov in #14475
- Public annotation metadata merge, synthesis and stereotype retention by @dstepanov in #14461
- Expose whether a class may produce a bean definition by @dstepanov in #14529
- Active health checks for discovered service instances by @dstepanov in #14546
- Add opt-in PROXY protocol (v1/v2) support to the Netty HTTP server by @dstepanov in #14534
- Serve HTTP/3 on the HTTPS port and advertise it with Alt-Svc by @dstepanov in #14589
- Support TLS to the HTTP proxy of the client by @dstepanov in #14587
- Serve pre-compressed static resources and cache small ones in memory by @dstepanov in #14531
Bug Fixes 🐞
- Strip bindings declared with repeated @InterceptorBinding from adapter beans by @dstepanov in #13564
- Hash a synthesized annotation over the members it answers by @dstepanov in #13577
- Destroy the dependents of a bean whose creation fails by @dstepanov in #13563
- Serve requests without jdk.jfr and initialize Micronaut's JFR events only once a Flight Recorder exists by @alvarosanchez in #13395
- Configure Logback on refresh the way Logback's startup does by @alvarosanchez in #13400
- Name an array class literal in a Groovy annotation member as Class.getName() does by @elgamal-ahmed in #13620
- Skip the ImageSingletons lookup on the JVM and test the service name condition on every path by @alvarosanchez in #13398
- Fix the 5.3.x build: expect the name Class.getName() gives for a primitive array in the Groovy descriptor spec by @dstepanov in #13653
- Keep the factory of a bean while its factory method arguments are created by @dstepanov in #13568
- Do not park the loom carrier while continuations are queued by @dstepanov in #13663
- Write the response of a blocking reactive route as it is emitted by @dstepanov in #13721
- Type an empty array member of a Kotlin annotation as javac does by @elgamal-ahmed in #13651
- Do not share array dimension type annotations across declarations by @dstepanov in #13788
- Report the annotations of a type variable use, not of its declaration by @dstepanov in #13775
- Report a Kotlin type parameter use's own annotations, not the declaration's by @dstepanov in #13785
- Create the streaming buffer of an HTTP/1 response on the event loop by @dstepanov in #13768
- Report the annotations of a Groovy type variable use, not of its declaration by @dstepanov in #13779
- Keep the bytes of a split body in order when the upstream emits reentrantly by @dstepanov in #13857
- Leave method parameters out of the @RouteCondition evaluation context by @graemerocher in #13858
- Record every @NonBinding member of an annotation on each of its occurrences by @dstepanov in #13902
- Select beans by the annotation alone for a qualifier built from an annotation or an annotation value by @dstepanov in #13904
- Treat java.util.concurrent.Flow.Publisher as a reactive type by @dstepanov in #13897
- Select the most specific overload in evaluated expression method calls by @graemerocher in #13863
- Handle a CodecException thrown by a message body writer with the exception handlers and error routes by @graemerocher in #13888
- Compile evaluated expressions in array annotation members with KSP by @graemerocher in #13887
- Carry the upstream Reactor context into the downstream of a stage filter continuation by @graemerocher in #13861
- Register the methods Netty's leak detector looks up in a native image by @graemerocher in #13856
- Match the route of a WebSocket upgrade after the pre-matching filters and answer failures by @graemerocher in #13859
- Do not nest the prefix of a subclass that redeclares its superclass @EachProperty by @dstepanov in #13916
- Read a type variable with no annotated bounds through its bounds by @dstepanov in #13918
- Bind every value of a repeated form field to a collection argument read by name by @dstepanov in #13944
- Fix an AssertionError and a hang when a body over the buffer limit is closed while it is failing by @dstepanov in #13946
- Copy the source defaults when mutating an AnnotationValue by @dstepanov in #13917
- Destroy a null bean registration without pre-destroy listeners or disposal by @dstepanov in #13920
- Bind a filter @Body argument after an earlier filter wrapped the request by @dstepanov in #13950
- Bind the named component of the body for @Body("name") future and publisher arguments by @dstepanov in #13947
- Keep the arrival order of same-name uploads by @dstepanov in #13945
- Answer 413 when a @Body InputStream read passes max-request-size by @dstepanov in #13949
- Answer a HEAD request with the Content-Length of the GET and keep the connection open on Netty by @dstepanov in #13951
- Keep a visitor's mutation of an inherited field or parameter to the subclass it was made through by @dstepanov in #13923
- Report the throws clause of Java methods seen through KSP by @dstepanov in #13934
- Report the declared modifiers of Java fields seen through KSP by @dstepanov in #13936
- Do not treat Kotlin extension properties as bean properties by @dstepanov in #13937
- Give the extension receiver no bit in the Kotlin defaults mask by @dstepanov in #13938
- Expand type aliases to the types they stand for in the Kotlin elements by @dstepanov in #13939
- Read Kotlin vararg parameters as arrays by @dstepanov in #13941
- Release the WebSocket upgrade request by @graemerocher in #13889
- Bind a filter @Body argument as no bytes after an earlier filter cleared the body by @dstepanov in #13975
- Return an attribute unchanged when it already has the requested type by @dstepanov in #14004
- Read the @NonBinding members from the compilation's view of the annotation and guard a re-entered metadata build by @dstepanov in #14014
- Recreate a constructor-bound configuration bean on a forced refresh only when a value under its prefix changed by @dstepanov in #14022
- Let a remapper see the stereotypes a visitor added to an annotation type under KSP by @dstepanov in #14013
- Treat accepted media ranges with quality 0 as not acceptable by @dstepanov in #14019
- Run the dev gate filter after the security filter phase by @dstepanov in #14029
- Answer 406 when no acceptable type has a writer for the body by @dstepanov in #14027
- Keep the forwarding headers when Connection lists them in stripHopByHopHeaders by @dstepanov in #14028
- Resume a suspend caller of an intercepted suspend method on its dispatcher with the propagated context by @graemerocher in #13910
- Read the rest of a request body before closing the connection after the response by @dstepanov in #13997
- CorsFilter retains route infos of located route tables by @dstepanov in #14031
- Switch protocols after the responses of earlier pipelined requests by @dstepanov in #14030
- Tell the interceptors of a bean created with createBean the bean they are created for by @dstepanov in #14024
- Leave a type argument the bean definition cannot name out of its type arguments by @dstepanov in #14025
- Order the class changes of a dev ChangeSet by class name by @dstepanov in #14040
- JDK raw client fails to copy HTTP/2 responses by @dstepanov in #14047
- Carry overrides into the retained tree of repeatable stereotypes reflectively by @dstepanov in #14053
- Cancel the running flow of a form field only once by @dstepanov in #14042
- Apply the route's @JSONVIEW to the events of an SseEmitter by @dstepanov in #14043
- Hold FormPart.transferTo to the file limit for a part without a file name by @dstepanov in #14051
- Hand over a sparsely filled combined response buffer at its exact size by @dstepanov in #14045
- Decode the parts of a multipart @Body with the charset of each part by @dstepanov in #14049
- max-content-length is not applied to decompressed bodies in AsyncStreamingHttpClient by @dstepanov in #14044
- Keep the HTTP/2 cipher suites for auto-loaded SSL contexts by @dstepanov in #14057
- Merge small response stream writes a slow connection has not taken by @dstepanov in #14048
- Upload binders ignore a body replaced by a filter by @dstepanov in #14032
- Decode AsyncRequestBody.text() in the Content-Type charset by @dstepanov in #14046
- Let the first reader of a replayable body pass on a buffer larger than the limit by @dstepanov in #14068
- Fix bean candidate lookup gaps found by Micronaut CDI by @dstepanov in #14063
- Compute the client key of placeholder client annotations again once the properties change by @dstepanov in #14072
- Decode a Publisher body with one decoder across buffers by @dstepanov in #13866
- Bind @part StreamingFileUpload arguments by @dstepanov in #13867
- Release the bean definition service's lookup caches when its context closes by @graemerocher in #14105
- Destroy every null singleton registration on stop by @graemerocher in #14104
- Keep a self-referential bound when its variable is reached through another variable's bound by @dstepanov in #14095
- Keep reading the rest of a request body while the client still sends it by @dstepanov in #14059
- Keep wildcards bounded by primitive arrays in generated arguments by @dstepanov in #14097
- Dispose the clients a client annotation had before its placeholders resolved to another key by @dstepanov in #14092
- Resolve the placeholders of a shared generated method with the environment of each context by @dstepanov in #14071
- Bind a @part byte[] argument to the bytes of its part by @dstepanov in #14165
- Annotate the synthetic members of a Groovy property through the property by @dstepanov in #14146
- Keep the implicit HEAD route of a GET route beside an explicit HEAD route by @dstepanov in #14088
- Close AnnotationValue.matches and shutdown-window gaps found by Micronaut CDI by @dstepanov in #14194
- Stream an untyped publisher body on the executor of the route by @graemerocher in #14192
- Restore the type arguments given with BeanElementBuilder.typeArgumentsForType by @dstepanov in #14244
- Replace the converter cache after each converter registration or removal so lookups made before it no longer return stale converters by @dstepanov in #14246
- Fail the build on Error Prone's StringCaseLocaleUsage check in main code by @dstepanov in #14238
- Require the router for the development access filter by @graemerocher in #14256
- Load what runs inside the embedded Groovy and Kotlin compilers from its own path, isolated from the launcher's by @graemerocher in #14263
- Keep a bean definition's initialization failure without a backtrace, and skip definitions with an absent class in watches by @graemerocher in #14257
- Detect a Kotlin older than 2.4 where the embedded compiler is set up by @graemerocher in #14262
- Report an application that failed to start under the development launcher by @graemerocher in #14265
- Rebuild the Python file list after an incremental compilation deletes the generated modules it replaced by @graemerocher in #14283
- Flush the JDK's bean info caches when a generation retires, in every thread group by @graemerocher in #14296
- Give a runtime proxy its own resolution context, so that calls of the proxy cannot break each other by @graemerocher in #14291
- Let the development manifest choose the Python incremental mode by @graemerocher in #14288
- Count a relative import the Python sources resolve as resolved in the conservative incremental plan by @graemerocher in #14287
- Apply a body edit of a statically compiled Python function in place by @graemerocher in #14275
- Wind down a pooled HTTP/2 connection on its event loop when the client is refreshed by @dstepanov in #14313
- Answer an HTTP/1 response whose moved write fails on the event loop, and release a handler whose hop is rejected by @dstepanov in #14302
- Stop counting a wound-down HTTP/2 connection toward the pool's connection limit by @dstepanov in #14354
- Answer a LiveReload page request whose file is not UTF-8 or is gone by @dstepanov in #14413
- Restart rather than redefine in place a change to a constructor the running instances already ran by @dstepanov in #14412
- Keep opening local connections for requests that wait on an event loop with enforced locality by @dstepanov in #14373
- Escape every quote of the documentation in the docstring of a curated Python module by @dstepanov in #14418
- Never look up an address value that starts with a dot in a remote address condition by @dstepanov in #14416
- Treat a request abandoned while its body conditions are decided as an ignorable client disconnect by @dstepanov in #14405
- Keep the class lookup of a ConvertibleValuesMap subclass going through its conversion context lookup by @dstepanov in #14404
- Close the body elements of a response a status route replaces by @dstepanov in #14401
- Resolve a type parameter bound to the wildcard of a projected primitive array in Kotlin by @dstepanov in #14400
- Tell Kotlin overloads that differ by their JVM name apart in the visitor mutation key by @dstepanov in #14399
- Keep a protected nested class of another package in the type arguments of a bean definition by @dstepanov in #14396
- Read a JSON file part bound to a collection by the reader of its content type by @dstepanov in #14388
- Clean up a request whose 101 Switching Protocols response fails to write by @dstepanov in #14374
- Send connection: close on an HTTP/1 response written off the event loop when a close was marked before it was installed by @dstepanov in #14375
- Do not report an inherited Groovy interface default method as overriding itself by @dstepanov in #14415
- Generate a lazy hotswap proxy that selects interceptors per target without the lock of a swappable proxy by @dstepanov in #14414
- Keep the trailing slash of a context path before a query-only request URI by @dstepanov in #14403
- Release the messages of a WebSocket message stream connection that closes before its messages handler starts by @dstepanov in #14397
- Dispatch an inherited Kotlin method to its own $default method when it implements an interface without defaults by @dstepanov in #14394
- Keep calling an overridden getNextAvailable(List) from the round robin load balancers by @dstepanov in #14387
- Keep the path a provider retains from forming cycles and filtering candidates of its later lookups by @dstepanov in #14382
- Complete a chunked string read without another request once the input ended by @dstepanov in #14402
- Proceed when a filter method returns a lazy empty publisher behind a reactive filter by @dstepanov in #14383
- Accept a final field whose @value or @Property is bound through the constructor parameter of the same name by @dstepanov in #14395
- Destroy a fresh instance of an advised singleton with the dependency group that created it by @dstepanov in #14398
- Generate empty annotation array defaults untyped by @xh123637 in #14429
- Report the right argument name in six ArgumentUtils checks by @Dhairya-007 in #14345
- Use the configured HTTP client proxy for WebSocket connections by @shashankbrgowda in #14447
- Apply the reloadable part of a server configuration change that also touches a bound address by @yawkat in #14433
- [5.3.x] Keep BeanContext lookup caches consistent by @dstepanov in #14467
- [5.3.x] Preserve singleton identity and retained ownership by @dstepanov in #14468
- [5.3.x] Complete context cleanup after shutdown failures by @dstepanov in #14469
- [5.3.x] Correct execution targets and compatible method lookup by @dstepanov in #14470
- Accept no further buffer while a reader holds one larger than its limit by @dstepanov in #14210
- Make configuration metadata output reproducible by @alvarosanchez in #14581
- Match the host route condition against the Host header by @yawkat in #14432
- Fix KSP proxies overriding final methods by @Adityaaprakash in #14574
- Make the access log cookie elements agree with request cookies when a request has several Cookie headers by @yawkat in #14435
- Validate the host the HTTP client derives from the URI authority by @yawkat in #14494
- Return the remote address of HTTP/3 requests by @graemerocher in #14573
- Restart in dev mode on a change of the HTTP client or SSL configuration by @yawkat in #14537
- Close a response that arrives after the caller cancelled by @yawkat in #14499
- Release buffered bodies discarded before they are written by @yawkat in #14495
- Apply @JSONVIEW to BodyElements bodies written with a fallback writer by @yawkat in #14436
- Send the WebSocket upgrade request only after the TLS handshake is verified by @yawkat in #14498
- Retain client connections only for clients with the same TLS and proxy settings by @yawkat in #14497
- Keep the HTTP/2 connection limit when the connection pool is disabled by @yawkat in #14493
- Send "/" as the request path when a client request URI has an empty path by @graemerocher in #14603
- Do not count caller-side body failures and stalls against load-balanced instances by @yawkat in #14496
- Wait for filter methods that return a CompletionStage or Publisher of Void by @graemerocher in #14563
- Python: keep the VFS file list in step with incremental outputs after a class rename by @graemerocher in #14626
- Fix compiling a @ContextPooled Python class that extends a Python class with an injected init by @graemerocher in #14607
- Run a handwritten init when constructing an introspected Python class from Java by @graemerocher in #14631
- Python: generate a module that defines a class named like it as the Java class Module by @graemerocher in #14600
- Fix query separator after optional path variable expansion by @Anique666 in #14596
- Apply non-literal dataclass defaults through init and require fields without a default by @graemerocher in #14601
- Pass a Python object rather than its Java wrapper to a Python method and write None rather than a Java null by @graemerocher in #14606
Improvements ⭐
- Bind enum-keyed configuration Map with a bean value type by @elgamal-ahmed in #13180
- Preserve an explicit HttpResponse body writer by @kalayciburak in #13183
- Probe the reactive types of Publishers without initializing them by @alvarosanchez in #13397
- Raw client: response timeout after send, half-close relay on switched connections by @dstepanov in #13505
- Write a descriptor of each bean definition into its META-INF/micronaut entry by @alvarosanchez in #13580
- Cut the per-piece cost of streamed responses by @dstepanov in #13643
- Write byte[] response pieces without a pooled buffer per piece by @dstepanov in #13646
- Faster streamed JSON request bodies from direct and composite buffers by @dstepanov in #13647
- Fewer per-request allocations on the plain request path by @dstepanov in #13648
- Retain lifecycle interceptor candidates and build interceptor chains through a factory bean by @dstepanov in #13641
- Create a bean from a bean definition the caller already holds by @dstepanov in #13695
- Extract the client exchange from NettyHttpClient by @dstepanov in #13691
- Release request disposal resources through an atomic resource scope by @dstepanov in #13690
- Specialize route body readers and stream writers for their type by @dstepanov in #13680
- Tag RawProxyTest cases that need upstream cancellation or streaming back-pressure by @dstepanov in #13719
- Address the review of the route locators by @dstepanov in #13731
- Tag the upgrade and trailers relay TCK tests that need a transport-specific server by @dstepanov in #13729
- Prefetch the bean definitions while logging starts, behind an experimental switch by @alvarosanchez in #13644
- Move the streamed response aggregation into a piece accumulator by @dstepanov in #13694
- Update KSP to 2.3.12 and keep Kotlin static modifiers consistent by @dstepanov in #13746
- Let injection point bean definitions cover multi-type, nullable and disposable beans by @dstepanov in #13767
- Allow dependency lookups made on behalf of shutdown callbacks by @dstepanov in #13771
- Find the META-INF/micronaut entries of a jar from its central directory by @alvarosanchez in #13650
- Bind forms and multipart bodies without Reactor by @dstepanov in #13773
- Add PropagatedContext.supportsScopes() and propagateIfSupported() by @graemerocher in #13840
- Connect websockets without Reactor by @dstepanov in #13744
- Read the elements of JSON bodies without Reactor by @dstepanov in #13732
- Add ReflectionArguments.ofExact, toExactType and typeClosureOf for wildcards, variable bounds and generic arrays by @dstepanov in #13901
- Derive readChunked from the piece reader, and read more bodies through piece readers by @dstepanov in #13735
- Read and write bodies without Reactor operators by @dstepanov in #13736
- Read the streams of the Netty client without Reactor by @dstepanov in #13745
- Extract the transport-independent part of the HTTP client into AbstractHttpClient by @dstepanov in #13740
- Share the HTTP client pipeline with the JDK client by @dstepanov in #13743
- Share the raw request wrapper between the clients by @dstepanov in #13769
- Read streamed JSON without Netty by @dstepanov in #13797
- Cache UriMatchTemplate.toPathString() by @graemerocher in #13891
- Propagate the context to tasks submitted to executor beans by @graemerocher in #13842
- Propagate the context to Kotlin coroutines in scoped-value mode by @graemerocher in #13865
- Complete the async WebSocket paths without Reactor by @dstepanov in #13754
- Propagate the caller's context when the client writes the request on a new connection by @graemerocher in #13841
- Remove the bean definition descriptors by @alvarosanchez in #13958
- Tell the interceptors of a subclass proxy the bean they are created for by @dstepanov in #13922
- Add a seeded HTTP fuzz suite to the server TCK by @dstepanov in #13948
- Clear all the native elements helper caches when KSP starts a new round by @dstepanov in #13935
- Fail the KSP compilation on Kotlin context parameters Micronaut would generate code for by @dstepanov in #13942
- Tell whether a route takes its body as an AsyncRequestBody when it is built by @dstepanov in #13989
- Switch the bean definition prefetch on with ApplicationContextBuilder by @alvarosanchez in #13954
- Count the elements of the slow-reader TCK test in the decoded body by @dstepanov in #13860
- Resolve declarative client placeholders again only after the properties changed by @graemerocher in #13892
- Document and test the order of bean lookups by @dstepanov in #14006
- Keep the body bytes in the mutable copy of a full client response by @dstepanov in #14007
- WebSocket server TCK with a tag per operation by @dstepanov in #13959
- Tag the WebSocket TCK ping handler test separately from ping-pong by @dstepanov in #14023
- Match filter patterns without per-request work that does not depend on the path by @graemerocher in #13890
- Fail compilation when an injection annotation is on a final field by @dstepanov in #13998
- Retain what annotations nested in members compose by @dstepanov in #14052
- Benchmark annotation member reads by @dstepanov in #13995
- Create the convertible values and defaults of an annotation value on first use by @dstepanov in #13999
- Cut allocations and lookups in annotation metadata reads by @dstepanov in #14001
- Cut annotation presence checks, hierarchy lookups and query binding costs by @dstepanov in #14056
- Find a type hierarchy record once and let its class loader be collected by @dstepanov in #14064
- Router internal cleanups: dead hooks, shared filter prefixing, cheaper local error lookup by @dstepanov in #14090
- Cut annotation value comparisons, stereotype queries and hierarchy merge costs by @dstepanov in #14065
- Let interceptors keep values derived from an executable method by @dstepanov in #14073
- Preserve dataclass metadata on Java-returned Python objects by @n0tl3ss in #14036
- Keep type hierarchy records away from visitors and name them per origin by @dstepanov in #14152
- Share the declared and all annotation maps of generated metadata that inherits nothing by @dstepanov in #14067
- Bind the arguments of a controller route with less work per request by @dstepanov in #14170
- Share the executable methods of a proxy type per definition by @dstepanov in #14148
- Prepare the execution of a route once by @dstepanov in #14154
- Fulfill the handler routes of the request and the path variables without binders by @dstepanov in #14168
- Accept temporary dependency groups for the whole shutdown, detach closed child groups by @dstepanov in #13849
- Resolve the converter of an argument once for repeated conversions by @dstepanov in #14198
- Keep JNA's load error and the processors' environments out of the development mode console by @graemerocher in #14250
- Convert collections and header values with less work by @dstepanov in #14247
- Verify contracts, check library overrides and honor library @nullable annotations with NullAway by @dstepanov in #14240
- Fail the build on Error Prone's ClassInitializationDeadlock check in main code by @dstepanov in #14234
- Fail the build on Error Prone's DoubleCheckedLocking check in main code by @dstepanov in #14235
- Fail the build on Error Prone's BadInstanceof check in main code by @dstepanov in #14236
- Fail the build on Error Prone's DefaultCharset check in main code by @dstepanov in #14237
- Fail the build on Error Prone's UnusedVariable check in main code by @dstepanov in #14241
- Do not import asyncio in micronaut_runtime on every Python context by @graemerocher in #14303
- Keep the Python processing session between incremental compilations by @graemerocher in #14284
- Answer an HTTP/2 request that the request handler fails to accept on its own stream by @dstepanov in #14322
- Move every HTTP/2 response write to the event loop in one place by @dstepanov in #14298
- Cut bean resolution overhead and keep every bean candidate cached by @dstepanov in #14363
- Skip the bean created event when no listener matches by @dstepanov in #14364
- Key generated singleton definitions by their class by @dstepanov in #14365
- Reuse an emptied bean creation stack by @dstepanov in #14366
- Return a created singleton from BeanProvider.get() without copying the resolution context by @dstepanov in #14367
- Read completed futures with state() in CompletableFutureExecutionFlow by @dstepanov in #14352
- Count bean creations that keep aside no parent dependents instead of pushing a frame by @dstepanov in #14389
- Build one bean key per lookup by @dstepanov in #14390
- Index resolved plain singletons under their lookup key by @dstepanov in #14391
- Return a created singleton from jakarta and javax providers without copying the resolution context by @dstepanov in #14392
- Keep the event publisher of each event type in the bean context by @dstepanov in #14393
- Run a cancel hook registered after a delayed flow was cancelled, exactly once by @dstepanov in #14377
- Hold the lifecycle of a pool entry in one state that moves its connection counts by @dstepanov in #14378
- Release a response buffer through one owner that is taken or closed exactly once by @dstepanov in #14379
- Hand each request and stream a final per-connection context instead of the handler's nullable fields by @dstepanov in #14380
- Promote five Error Prone checks to errors and fix their hits by @dstepanov in #14428
- Hold the state of an HTTP/1 response in one field that moves only on the event loop by @dstepanov in #14385
- Build an HTTP/1 response as an immutable command and run it on the event loop by @dstepanov in #14386
- [5.3.x] Remove redundant candidate work and measure context startup by @dstepanov in #14471
- [5.3.x] Reuse the context conversion service during startup by @dstepanov in #14473
- Add Qodana static analysis by @dstepanov in #14508
- Make media type negotiation linear in the number of accepted ranges by @dstepanov in #14575
- Optimize ServerScenariosBenchmark (multipart, form-urlencoded, JSON streaming) by @graemerocher in #14621
- Read Enum members and None of a pooled entity in the caller's context by @graemerocher in #14605
- Hand Python the Python objects of entities in Java collections, Optionals and AOP bean results by @graemerocher in #14608
- Accept empty and docstring-only package init.py files in Pyronaut sources by @graemerocher in #14599
- Optimize Python and Java compile-time annotation processing performance by @graemerocher in #14611
- Make the HTTP/2 client receive window configurable and raise its default by @liotur in #13994
Docs 📖
- Update the KSP guide for KSP 2.3 and Kotlin 2.4 by @dstepanov in #13933
- Document the split backpressure trap of buffering one branch before reading the other by @dstepanov in #14003
- Document that object-target routes resolve the bean by type by @dstepanov in #14093
- Simplify the Functional Routes user guide by @graemerocher in #14193
- Document three intended 5.3 client and body binding changes as breaking changes by @dstepanov in #14417
- Fix dead links to the HTTP client guide and Context Propagation docs by @farisbasha in #14490
Dependency updates 🚀
- Update bytebuddy to v1.18.13 by @renovate[bot] in #13052
- Update dependency io.github.classgraph:classgraph to v4.8.195 by @renovate[bot] in #13150
- Update dependency org.graalvm.buildtools.native:org.graalvm.buildtools.native.gradle.plugin to v0.11.5 by @renovate[bot] in #12447
- Update jackson monorepo by @renovate[bot] in #13590
- Update dependency io.smallrye:smallrye-fault-tolerance to v6.11.4 by @renovate[bot] in #12330
- Update dependency com.aayushatharva.brotli4j:brotli4j to v1.24.0 by @renovate[bot] in #14134
- Update netty monorepo to v4.2.20.Final by @renovate[bot] in #14252
- Update dependency io.netty:netty-tcnative-boringssl-static to v2.0.85.Final by @renovate[bot] in #14251
- Update GitHub Actions digest updates by @renovate[bot] in #14227
- Update micronaut-build to 8.2.5 by @cliponaut[bot] in #14628
- Upgrade GraalPy and GraalVM to 25.6.5.1 by @graemerocher in #14634
Other Changes 💡
- Sync CI workflows from the project template and skip drafts in python.yml by @graemerocher in #13122
- Sync CI workflows from the project template by @graemerocher in #13141
- Add a reflection-free enum-keyed map to CollectionUtils by @dstepanov in #13125
- Keep type annotations written on a primitive type use (javac and Groovy) by @dstepanov in #13164
- docs: fix 'allows to process' grammar in ClassImport guide by @mrchatam in #13171
- docs: fix 'overring' typo and 'allow to' grammar in breaks guide by @mrchatam in #13170
- docs: fix grammar typos in GRAAL.md CI notes by @mrchatam in #13169
- Groovy declared generic placeholders and array class literal members by @dstepanov in #13165
- Compile generated source files in a Groovy compilation and run the Groovy visitors after Groovy's own transforms by @dstepanov in #13179
- Show Groovy methods the user declared with a leading dollar to visitors by @dstepanov in #13176
- Do not apply the declaring class advice to a generated @adapter bean by @dstepanov in #13188
- Report reflection with the NoReflection ErrorProne check by @dstepanov in #13126
- Match the GraalPy log level name without Enum.valueOf for the NoReflection check by @dstepanov in #13317
- Proceed when a reactive filter method returns an empty publisher by @dstepanov in #13304
- Pass raw HTTP responses through the server response lifecycle by @dstepanov in #13262
- Send an already encoded form body as is from the HTTP clients by @dstepanov in #13349
- Reduce Python runtime allocation and execution overhead by @yawkat in #13352
- Handle exceptions thrown by a message body writer with the exception handlers and error routes by @dstepanov in #13355
- Send an already encoded multipart body as is from the Netty HTTP client by @dstepanov in #13361
- Keep Content-Encoding on client responses without a body by @dstepanov in #13350
- Add a regression test for an oversized first multipart part by @ShubhJ46 in #13380
- Fix the 5.3.x build and the Sonar quality gate by @dstepanov in #13384
- Release the connection when a streaming client call fails with an error status by @dstepanov in #13421
- Honor server SETTINGS_MAX_CONCURRENT_STREAMS in the HTTP/2 client pool by @dstepanov in #13419
- Fix runner identity check and shutdown drain in LoomCarrierGroup by @dstepanov in #13418
- Add a JSON writer to core-processor for the processors' JSON output by @graemerocher in #13465
- Fix off-by-one in Pool40 HTTP/2 stream earmarking by @dstepanov in #13413
- Mark a streaming response written through the idempotent path on addAndComplete by @dstepanov in #13414
- Fix conversion of composed native channel option values by @dstepanov in #13415
- Release the client connection when request serialization fails by @dstepanov in #13416
- Bind declarative client requests only once by @dstepanov in #13417
- Avoid reverse DNS lookup in NettyHttpRequest.getServerName() by @dstepanov in #13420
- Wind down pooled connections on their event loop when the client is refreshed by @dstepanov in #13442
- Keep headers and protocol version when converting a response to a streamed one by @dstepanov in #13440
- Return valid content from FullNettyClientHttpResponse.toHttpResponse by @dstepanov in #13439
- Report HTTP/1.0 from NettyHttpRequest.getHttpVersion() by @dstepanov in #13443
- Order Netty cookies consistently and read every Cookie header by @dstepanov in #13444
- Do not write client-generated headers into the caller's request by @dstepanov in #13445
- Make NettyByteBuffer.indexOf return an absolute index by @dstepanov in #13446
- Remove unsafe double-checked locking of executors in RoutingInBoundHandler by @dstepanov in #13447
- Use at least one event loop thread for a small thread-core-ratio by @dstepanov in #13448
- Use the reference-counted OpenSSL provider for ALPN client contexts by @dstepanov in #13450
- Remove cancelled pending acquire requests from Pool49 by @dstepanov in #13456
- Skip conversion setup for attribute lookups of matching type by @dstepanov in #13475
- Publish HttpRequestTerminatedEvent only when it is observed by @dstepanov in #13478
- Allocate less per Netty server response by @dstepanov in #13479
- Do not convert a body argument again after it was read for its type by @dstepanov in #13481
- Keep route metadata in typed fields instead of the attribute map by @dstepanov in #13429
- Report the phase of a raw client failure by @dstepanov in #13408
- Avoid redundant propagated context copies per server request by @dstepanov in #13472
- Skip interim responses and send the body after a while without 100 Continue by @dstepanov in #13410
- Carry the trailers of a message with its body by @dstepanov in #13422
- Tell a read timeout while the body is read from one while the response is awaited by @dstepanov in #13459
- Report the reset of an HTTP/3 request stream like an HTTP/2 one by @dstepanov in #13460
- Only default Netty maxOrder to 3 when the pooled allocator is selected by @dstepanov in #13437
- Add server pipeline handlers only where they are needed by @dstepanov in #13427
- Fix a flaky write in ExpectContinueTest by @dstepanov in #13509
- Support ExecutionFlow in request and response filter methods by @dstepanov in #13280
- Build the client's outgoing request headers without an extra copy by @dstepanov in #13482
- Retry an idempotent request once when a reused connection was already closed by @dstepanov in #13441
- Cache the declarative client key per annotation metadata by @dstepanov in #13457
- Convert reactive results eagerly at the ExecutionFlow boundaries by @dstepanov in #13463
- Install one Netty client response handler per HTTP/1 connection by @dstepanov in #13430
- Keep one JSON encoder open across the elements of a streamed response by @dstepanov in #13431
- Create Jackson creator beans through their introspection and keep a buffer recycler per event loop by @dstepanov in #13477
- Run Kotlin suspend routes through ExecutionFlow instead of Reactor by @dstepanov in #13464
- Coalesce response flushes and batch HTTP/2 consumption signals by @dstepanov in #13432
- Subscribe eagerly to WebSocket handler results by @dstepanov in #13462
- Skip client filter resolution when a client has no filters by @dstepanov in #13458
- Avoid intermediate route lists in DefaultRouter matching by @dstepanov in #13474
- Share the server compressor and check Accept-Encoding before content type by @dstepanov in #13454
- Decode query parameters from the raw request target without java.net.URI by @dstepanov in #13453
- Copy the client full response body once and share it on error paths by @dstepanov in #13455
- Cache the last Accept match per route in DefaultRouteInfo by @dstepanov in #13451
- Allocate URI match variables only after the template matched by @dstepanov in #13452
- Share the streaming response writer between the HTTP/1 and HTTP/2 handlers by @dstepanov in #13434
- Evict unused per-host connection pools in the HTTP client by @dstepanov in #13606
- Unify dependency ownership for runtime lookups and interceptor selection by @dstepanov in #13600
- Block on the execution flow in the blocking HTTP client by @dstepanov in #13605
- Preserve type-use annotations on resolved generic occurrences by @dstepanov in #13625
- Fix processing of repeated @ClassImport annotations by @dstepanov in #13624
- Release class loaders held by the latest service-index cache by @dstepanov in #13626
- Optimize StringIntMap lookup in bean introspections by @dstepanov in #13628
- Preserve type annotations on individual array dimensions by @dstepanov in #13631
- fix: client exception stack traces omit the caller (#12655) by @pandareen in #13158
- Cache the request template of declarative client methods by @dstepanov in #13607
- Resolve references to classes generated during a Groovy compilation by @dstepanov in #13305
- Report HTTP/2 response consumption while the stream window has room by @dstepanov in #13652
- Respect runtime dependency order when destroying custom scopes by @dstepanov in #13602
- Copy large streamed JSON pieces into a factory buffer instead of handing over the scratch array by @dstepanov in #13662
- Resolve annotated injection through context-managed providers by @dstepanov in #13611
- Retain proxy ownership and resolve destruction dependencies explicitly by @dstepanov in #13603
- Look up propagated context elements without copying by @dstepanov in #13703
- Fix leaks and event-loop close in streamed response bodies by @dstepanov in #13808
- Only spill loom carrier work when the event loop is falling behind by @yawkat in #13720
- Fix the japiCmp and checkstyle failures on 5.3.x by @graemerocher in #13822
- Retain stereotype annotation values in environment metadata by @dstepanov in #13699
- Restore 5.3 binary compatibility checks by @dstepanov in #13848
- Retry TCK port-route startup after a port collision by @dstepanov in #13843
- Destroy a singleton created during shutdown before what it resolved by @dstepanov in #13850
- Add asynchronous body cleanup and clarify cancellation ownership by @dstepanov in #13844
- Fix ConcurrentModificationException flake in ClassLevelAdviceOnAdaptedMethodSpec by @dstepanov in #13851
- Compare a descriptor's indexes with the reference only when every indexed type loads by @graemerocher in #13881
- Remove the timing race from CompletionStagePublishersSpec's foreign-thread completion test by @graemerocher in #13909
- Fix HandlerRouteBodyElementsNettyTest flake: read the chunked response until its last chunk by @dstepanov in #13908
- Fix a race in AsyncRequestBodyPartsReleaseTest by @graemerocher in #13907
- Let a replaced application classloader be forgotten by the process-wide caches by @graemerocher in #13519
- Guard Reactor linkage in body publisher adapters by @dstepanov in #13815
- Share server argument binders and isolate Netty body conversion by @dstepanov in #13813
- Compile the Kotlin test sources at language version 2.4 by @dstepanov in #13932
- Answer an unsupported request charset with 400 instead of 500 by @dstepanov in #13971
- Reduce per-request allocations on hot server paths by @dstepanov in #13963
- Reuse the body argument of plain types by @dstepanov in #13964
- Read an async body as the route consumes when the request has no content type by @dstepanov in #13962
- Python: keep the original source positions of definitions through the transform by @graemerocher in #13269
- Python: document the type checker by @graemerocher in #13286
- Give the configuration refresh one entry point and explicit phases by @graemerocher in #13551
- Cover KSP behaviour the Kotlin processor relies on by @dstepanov in #13940
- List the super types a multidimensional array has as an array of arrays by @dstepanov in #13977
- Record a type hierarchy in the package of the origin and name the super types it cannot hold by @dstepanov in #13976
- Recognize dependency Python VFS modules during compilation by @n0tl3ss in #13991
- Respect ClassVar attributes in Python dataclass introspection by @n0tl3ss in #13810
- Add seeded fuzz tests of the functional routes by @dstepanov in #13970
- Release the body of a WebSocket upgrade request aggregated by the h2c upgrade handler by @dstepanov in #13973
- Run WebSocket handlers in the propagated context of the filtered upgrade request by @dstepanov in #13972
- Write @AllowedValues of a configuration property as the enum of its JSON schema by @graemerocher in #13870
- Release the JDK raw client's request body before the exchange's terminal signal by @graemerocher in #13882
- Fix the checkstyle violations on 5.3.x by @dstepanov in #14060
- Expose Python generic placeholders through their upper bound by @n0tl3ss in #14070
- Use the worker transport for the server-created acceptor event loop group by @dstepanov in #14075
- Close directly after a response that closes the connection to a request without a body by @dstepanov in #14087
- Wait for the rest of a discarded body before AsyncRequestBodyPartsReleaseTest ends by @dstepanov in #14107
- micronaut-dev test mode: generation loader for test-built contexts, live resources hide build copies, guarded generations dir by @graemerocher in #13609
- Generated classes no longer depend on the annotation types the compiling JVM registered at runtime by @graemerocher in #13614
- Test mode: patch body-only Python edits into the runner's live state and rerun on the same generation by @graemerocher in #13627
- micronaut-dev: poll every 250 ms on macOS without the native watch service by @graemerocher in #13629
- micronaut-dev test mode: name pytest results by root-relative file, not absolute path by @graemerocher in #13630
- Fix new Sonar bugs and critical issues on 5.3.x by @graemerocher in #14110
- Format HTTP dates as IMF-fixdate and parse the obsolete RFC 850 and asctime formats by @dstepanov in #14083
- Keep a plus sign of a decoded path variable as a plus by @dstepanov in #14082
- Retain what annotations in a container that is not repeatable compose by @dstepanov in #14150
- Python: document static compilation by @graemerocher in #13300
- Python: benchmark the type checking and static compilation pipeline and cut the cost of its stages by @graemerocher in #13321
- Python: keep static compilation correct against the 5.3.x tip by @graemerocher in #13854
- Python: pin a corpus of real applications as a test of the static compiler by @graemerocher in #13407
- Python: mark static compilation experimental, with a fix for every reason of the report by @graemerocher in #13515
- Keep an array of a Groovy enum an enum when it is copied by @dstepanov in #14155
- Follow the retry and id of an event stream block without data by @dstepanov in #14157
- Python: rebind compiled bodies to a subclass object created again after a restart by @graemerocher in #14125
- Python: one scope resolver for TypeChecked and CompileStatic, nested classes included by @graemerocher in #14126
- Python: document why constructors stay in Python by @graemerocher in #14129
- Python: measure the compile-time cost of static compilation and cut the cost of planning by @graemerocher in #14130
- Python: make the output of static compilation reproducible by @graemerocher in #14131
- Python: measure the compile-time cost of static compilation cold, warm and in development mode by @graemerocher in #14132
- Python static compilation: create the Python exceptions of compiled raises lazily by @graemerocher in #14143
- Python static compilation: report the delegation of every compiled body and widen the bodies Python callers run as Java by @graemerocher in #14145
- unwrap only balanced quoted values in ProxyHeaderParser by @kali834x in #13560
- Remove the committed .gradle-review cache files and ignore .gradle-* directories by @graemerocher in #14183
- Release retired generations: remove a stopped application's shutdown hook, stop nesting executable method metadata, close GraalPy file systems without pinning loaders by @graemerocher in #13633
- Close the GraalPy engine of a retired generation when the pool closes after the primary context by @graemerocher in #13637
- micronaut-dev: hide the build copy of a deleted live resource; distinct pytest result names across roots by @graemerocher in #13656
- Restart for a configuration edit that may flip any @requires, not only property by @graemerocher in #13658
- micronaut-dev: initialize Netty's OpenSsl and PrivateLoomSupport outside any generation, so an HTTP client no longer pins the first generation by @graemerocher in #13756
- Fix the InnerTypeLast checkstyle error in DefaultNettyHttpClientRegistry by @graemerocher in #14189
- Wait for the claimed body release in ClaimedRequestBodyUpstreamFailureSpec by @graemerocher in #14186
- Run test timers on schedulers the tests own, not on the global Reactor schedulers by @graemerocher in #14185
- Write every line of server-sent event data and comments as its own field by @dstepanov in #14206
- Write the field members of a bean property, a shadowed super class field included by @dstepanov in #14221
- Visit classes annotated only on constructor or method parameters by @dstepanov in #14220
- Dev mode: settle late watcher reports against the file system, and take request hold/drain timeouts from application config by @graemerocher in #13852
- Dev mode: resources under the configuration root reach resource watches, and a recreated controller serves the next request by @graemerocher in #13853
- Dev mode: settle late resource reports, keep test runs on late reports, configurable LiveReload origins, null map values by @graemerocher in #13871
- Dev mode: adopt @bean(typed) @EachBean members and examine what configuration in a retained closure received by @graemerocher in #13874
- Configure Logback from the application's resources under the dev launcher by @graemerocher in #13876
- Keep the GraalPy engine warm across the test contexts of a generation in test mode by @graemerocher in #13877
- Log a note that development mode is not for production by @graemerocher in #13883
- Serialise compilation between a development process and a continuous testing process on the same project by @graemerocher in #13885
- Dev mode: reload latency, adaptive batching and FSEvents latency by @graemerocher in #13893
- Dev mode: FSEvents watch service without the JNA callback crash by @graemerocher in #13894
- Show continuous test runs on the console as Pyronaut does by @graemerocher in #13903
- Recreate the scheduler and reschedule @scheduled methods when their executor is recreated by @graemerocher in #13983
- Complete the annotations a visitor nests in an annotation it adds by @dstepanov in #14216
- Fail the build on Error Prone's EmptyCatch check in main code by @dstepanov in #14239
- Keep the request fast path for subclasses of DefaultServerRequestBinderRegistry by @dstepanov in #14259
- Close the elements the source of Publishers.bufferNow discards by @dstepanov in #14260
- Keep the name of a custom method in the mutable view of a Netty request by @dstepanov in #14219
- Keep empty path segments when the client prepends a context path by @dstepanov in #14207
- Map a body size limit failure wrapped more than once to 413 for a @Body InputStream by @dstepanov in #14258
- Bind a @Body Readable argument in the shared server binders by @dstepanov in #14261
- Read a factory field (or a member a proxy cannot dispatch) off the scoped proxy's target by @dstepanov in #14272
- Keep the validation advice of a Groovy property on its setter by @graemerocher in #14270
- JDK HTTP client: encode String bodies with the request charset by @dstepanov in #14271
- Leave the source roots the build tool compiles to the trigger in development mode by @graemerocher in #14276
- Open a missing output lock file a second time before locking it by @graemerocher in #14266
- Pin the order of the two mappers of a pair in MapperMethodWatcherSpec by @graemerocher in #14289
- Merge 5.2.x into 5.3.x by @graemerocher in #14273
- Return the introspection of the requested class, not of another loader's class of the same name by @dstepanov in #14278
- Resume the caller of an intercepted suspend method in its own coroutine context by @dstepanov in #14281
- Fix the HTTP/2 server-sent events hang and the 5.3.x tests that fail until retried by @graemerocher in #14290
- Keep data delivered before an error readable in PublisherAsBlocking by @dstepanov in #14297
- Synthesize annotations of the type a class loader sees by @dstepanov in #14279
- Stop a generation that fails to start in development mode, keeping what was retained for the next one by @graemerocher in #14293
- Collect every retired generation on a launcher whose provider lists the context class loader's introspections by @graemerocher in #14285
- Preserve explicit Netty transport selection by @dstepanov in #14111
- Cover gzip and deflate in the shared client TCK by @dstepanov in #14113
- Route explicit server SSL through the configured factory by @dstepanov in #14117
- Generate Graal reflection metadata for the HTTP client TCK by @dstepanov in #14118
- Preserve legacy event loop group factory overrides by @dstepanov in #14123
- Let a zlib codec factory compress a whole response body in one call by @dstepanov in #14191
- Find the classes of the running Groovy compilation by name while a generated source is visited by @dstepanov in #14327
- Keep what a visitor annotated under KSP for the declarations looked up in a later round by @dstepanov in #14323
- Fix stale Javadoc on PythonAstParser.buildTolerantly and a typo by @Dhairya-007 in #14324
- Update minor and patch dependencies, Gradle and GitHub Actions by @graemerocher in #14344
- Add Netty baseline benchmarks for real sockets, customizers and client connections by @dstepanov in #14312
- A FSEvents run loop that cannot start no longer also reports that it ended by @graemerocher in #14350
- Development mode: keep a bean whose recreation would stop the running application, and restart instead by @graemerocher in #14341
- Keep what a visitor annotated on a member under javac for the members looked up in a later round by @dstepanov in #14325
- Compile what other modules of the build produce into a directory of its own under development mode by @graemerocher in #14331
- Development mode: compile every source of an output generated from several sources by @graemerocher in #14332
- Development mode: honour the JVM options of a forked javac in the embedded compiler by @graemerocher in #14333
- Development mode: read class files through a buffer in the dependency index by @graemerocher in #14334
- Development mode: a private constant no longer recompiles every Java source by @graemerocher in #14335
- Name the class of an evaluated expression after the element that declares it, rather than numbering it by @graemerocher in #14336
- Development mode: keep the annotation processors' class loader between Java compilations by @graemerocher in #14337
- Development mode: compile the changed Java sources alone first, and their dependents only when their structure changed by @graemerocher in #14338
- Development mode: compile Java with debugging information, as Gradle and Maven do by @graemerocher in #14339
- Compile a new source with the sources of what processors aggregate from several sources by @graemerocher in #14347
- Development mode: give KSP a JDK and compile Kotlin in the build's module, with the previous output as a friend by @graemerocher in #14355
- Development mode: compile the callers of an inline Kotlin function with it, from the SMAP of their classes by @graemerocher in #14356
- Development mode: credit a Kotlin source the build compiled with the classes its SourceFile names, so that its first edit compiles their dependents by @graemerocher in #14359
- Development mode: leave the Kotlin module metadata as it is when a compilation only reorders its parts by @graemerocher in #14360
- Development mode: compile an edit of Kotlin method bodies with kotlinc alone, keeping what KSP produced by @graemerocher in #14361
- Keep the running generation in development mode while a configuration file cannot be read, and never exit the launcher over one by @graemerocher in #14307
- Warm up GraalPy beside the launch of a Python application in development mode by @graemerocher in #14310
- Upgrade GraalPy and GraalVM to 25.5.5.0.3 by @graemerocher in #14308
- Merge 5.2.x into 5.3.x by @graemerocher in #14384
- Keep H2's shutdown hook out of the first development generation by @graemerocher in #14409
- Hold Hikari's thread-local connection lists weakly in development mode by @graemerocher in #14410
- Document how to start development mode and what each build supports by @graemerocher in #14407
- Show the failure page when a compiler or processor throws during a reload by @graemerocher in #14406
- Keep interceptor bindings and WebSocket methods on the bean definition by @dstepanov in #14426
- Fix two http-server-netty test flakes on 5.3.x by @dstepanov in #14434
- Fix the http-server-netty test compilation on 5.3.x by @dstepanov in #14438
- Return no class path resources where javac does not export its internals by @dstepanov in #14437
- Take the interceptor bindings of a produced type's scope off with the scope by @dstepanov in #14439
- Take the Around members of a produced type's removed scope off as well by @dstepanov in #14450
- Treat an AnnotationValue lacking a member of the other as unequal by @dstepanov in #14482
- Write the GraalVM reflection configuration of members an introspection dispatches reflectively by @dstepanov in #14462
- Match bean methods of a type hierarchy by signature by @dstepanov in #14460
- Return 0 from a zero-length read of a publisher-backed stream by @dstepanov in #14483
- Ignore HTTP/2 extension headers in the redirect header copy TCK echo by @dstepanov in #14488
- Let a codec factory compress a whole Brotli response body in one call by @dstepanov in #14487
- Discover implicit repeatable containers during annotation remapping by @dstepanov in #14463
- Find the builder of an annotation for the class loader of an application by @dstepanov in #14484
- Filter replaced beans out of the candidates for an instance by @dstepanov in #14504
- Encode WebSocket messages into buffers of the channel allocator by @dstepanov in #14526
- Make closing the Netty buffering output stream idempotent by @dstepanov in #14525
- Release WebSocketFrame message arguments after the handler by @dstepanov in #14524
- Create part headers only for multipart parts by @dstepanov in #14522
- Hold the listener attributes of a request in fields by @dstepanov in #14521
- Skip request customizer bookkeeping without customizers and cache the write tracker by @dstepanov in #14520
- Start a waiting HTTP/1 client request only after the read that ended the previous response by @dstepanov in #14518
- Flush pipelined HTTP/1 responses before closing after a failure by @dstepanov in #14516
- Apply the io-ratio of an event loop group by @dstepanov in #14513
- Release the frame when the filter of a synchronous WebSocket broadcast throws by @dstepanov in #14511
- Fix MultipartReader delimiter recognition, header folding and malformed input reporting by @dstepanov in #14503
- Resolve the constructor of a bean constructor through the reflection module by @dstepanov in #14502
- Keep the annotation builder found in a given class loader by @dstepanov in #14501
- Resolve a chosen @Any definition without a qualifier to the singleton a lookup without one finds by @dstepanov in #14500
- Add a benchmark of the server's per-request path by @dstepanov in #14509
- Keep the whole Qodana report as the baseline by @dstepanov in #14536
- Test and document bidirectional streaming over HTTP/2 (gRPC groundwork) by @dstepanov in #14539
- Fail requests that wait for a pooled connection when the HTTP client closes by @dstepanov in #14519
- Check the compression threshold before negotiating an encoding by @dstepanov in #14510
- Validate trailers when copying them into Netty headers by @dstepanov in #14517
- Move a streamed chunk to its only reader by @dstepanov in #14523
- Let a running locator see the route captures of its locator routes by @dstepanov in #14550
- ci: remove unused Develocity build cache username and password by @sdelamo in #14576
- Merge 5.2.x into 5.3.x by @dstepanov in #14577
- Add this repository's risk tier rules by @alvarosanchez in #14588
- Name the owners of this repository's T2 areas by @alvarosanchez in #14594
- Optimize HTTP server pipeline allocations and hot paths by @graemerocher in #14612
- Optimize HTTP route execution shapes (FLUX, MONO, HANDLER) by @graemerocher in #14615
- Optimize HTTP server binding (BodyElements, RequestArgumentSatisfier, FormData) by @graemerocher in #14617
- Optimize JSON streaming and piece-reader benchmarks (JsonStreamMessageHandler, JacksonDatabindMapper) by @graemerocher in #14618
- Optimize HTTP body streaming and decoding benchmarks (StringBodyReader, SharedBuffer, InputStreamByteBody) by @graemerocher in #14619
- Do not have a test of the client write to a connection the client may have closed by @graemerocher in #14620
- Return HTTP 414 for oversized HTTP/1.1 request targets by @lissam1 in #14639
- Retry reactive executions in constant stack space by @sdelamo in #14629
New Contributors
- @mrchatam made their first contribution in #13171
- @kalayciburak made their first contribution in #13159
- @ShubhJ46 made their first contribution in #12949
- @elgamal-ahmed made their first contribution in #13180
- @pandareen made their first contribution in #13158
- @jochenseeber made their first contribution in #13394
- @Dhairya-007 made their first contribution in #14324
- @xh123637 made their first contribution in #14429
- @shashankbrgowda made their first contribution in #14447
- @farisbasha made their first contribution in #14490
- @Adityaaprakash made their first contribution in #14574
- @cliponaut[bot] made their first contribution in #14628
- @Anique666 made their first contribution in #14596
Full Changelog: v5.2.26...v5.3.0