News
Weld 7.0.0.Beta1
Weld Core 7.0.0.Beta1 and Weld API 7.0.Beta1 have landed in Maven Central. This is a feature complete implementation of Jakarta CDI 5.0.Beta1! Since the Alpha1 release, the remaining CDI 5.0 features have been implemented (WELD-2835, WELD-2836): @Eager annotation for eager initialization of @ApplicationScoped beans — the CDI equivalent of EJB’s @Startup @AutoClose annotation — beans implementing AutoCloseable are now automatically closed during destruction without the...
Read more »Weld 5.1.7.Final
Weld 5.1.7.Final has landed in Central, let’s take a look at what’s been changed: Observable Startup and Shutdown events for web modules are now fired within a synchronized block, similarly to @Initialized events for application scope (WELD-2827) Weld SE annotated reflection discovery strategy was incorrectly recognizing classes with indirectly present bean defining annotations as valid beans (WELD-2826) For a class to be considered annotated with a...
Read more »Weld 6.0.4.Final
New minor bugfix version of Weld 6 has landed in Central - say hello to Weld 6.0.4.Final. There is only a handful on notable changes: Observable Startup and Shutdown events for web modules are now fired within a synchronized block, similarly to @Initialized events for application scope (WELD-2827) Weld SE annotated reflection discovery strategy was incorrectly recognizing classes with indirectly present bean defining annotations as valid beans (WELD-2826) For a class...
Read more »Weld 7.0.0.Alpha1
First release of Weld 7, a CDI 5.0 compatible implementation, has landed in Central. Look for Weld Core 7.0.0.Alpha1 and Weld API 7.0.Alpha4! What’s new in this CDI version? First of all, starting with CDI 5.0.Alpha3 (released after M1), the artifacts have new coordinates which this Weld release consumes The group ID has changed from jakarta.enterprise to jakarta.cdi so it is now in...
Read more »Weld 5.1.6.Final
Weld 5.1.6.Final is now headed towards Maven Central with a tiny fix for potential memory leak. There was a very specific scenario possibly leading to a memory leak due to caching mismatch. Note that this only occured if the following conditions were met: Having a producer using InterceptionFactory Repeatedly creating those bean (most likely @Dependent beans) The underlying AnnotatedType backing this bean had to have an annotation with a non-empty array...
Read more »Weld 6.0.3.Final
Weld 6.0.3.Final release is now available in Maven Central. There are only two fixes to mention here: Added validation for interceptor classes declaring multiple methods for the same interception type (WELD-2814) This is a fail-fast(er) mechanism for users; otherwise the behavior is mandated by the Interceptors specification Correct AnnotatedType ID creation to avoid cache miss leading to possible memory leak (WELD-2815) The leak is not generic and doesn...
Read more »Moving to a Foundation
Just like other projects in the ecosystem around us (WildFly, SmallRye, RESTEasy, Undertow, …), Weld too has been looking for a friendly vendor-neutral place it could inhabit - a software foundation. It is our hope that by joining a foundation we can make Weld more open, expand the community, improve transparency and encourage participation from contributors coming from all over the software landscape. Things to Keep in Mind When choosing a foundation to join...
Read more »Weld 6.0.2.Final
Here we are with yet another small update to Weld 6; say hello to Weld 6.0.2.Final. Changes in this version: Support for records in the CDI Lang Model (WELD-2809) Container lifecycle observers can now inject any subclass of BeanContainer into them (WELD-2811) Substantially improved exception messages for invokers (WELD-2812) As always, do report any bugs you encounter so that we can squash them as soon as possible! [ Download...
Read more »Red Hat Middleware Strategy
By now you might have heard that Red Hat announced significant changes to their middleware strategy last month. Let me start by saying that this has come as a surprise to us as we were not aware of it in advance. Nonetheless, here we are, and I wanted to provide Weld community with some context as well as talk about how this affects the project. If you want to read the official announcement, it can...
Read more »Weld 6.0.1.Final
First small update for Weld 6 has landed in Central. There are only two notable fixes here, so let us take a look at them: Fixed a bug that EJC (Eclipse Java Compiler) users can encounter in combination with interceptors and lambdas in their beans (WELD-2806) This could, in certain circumstances, yield a very hard to decipher bytecode generation error. Note that this does not manifest when using standard javac compiler. If you are...
Read more »