Weld 7.0.0.Beta1
By Matej Novotny | May 27, 2026
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):
-
@Eagerannotation for eager initialization of@ApplicationScopedbeans — the CDI equivalent of EJB’s@Startup -
@AutoCloseannotation — beans implementingAutoCloseableare now automatically closed during destruction without the need for explicit@PreDestroyor@Disposesmethods -
Asynchronous method invokers via the new
AsyncHandlerAPI -
Programmatic registration of
BuildCompatibleExtensionin CDI SE -
SyntheticInjectionsfor injection points in synthetic beans -
Global scopes — application scope is now global
-
Support for parameterized types in
@Registration -
Removal of deprecated EL-related
BeanManagermethods (moved toELAwareBeanManagerin CDI 4.1) -
Removal of
SecurityManagerreferences
Other enhancements and bug fixes in this release:
-
Trimming a non-explicit bean archive is now correctly treated as a deployment problem (WELD-2832)
-
Optimized how Weld keeps references to dependent instances within
CreationalContext(WELD-2834) -
Fixed
ClassCastExceptionwhen unwrapping proxiedEntityManager(WELD-2245) -
Fixed reflection discovery strategy incorrectly discovering beans with just inherited BDA in SE (WELD-2826)
-
Startup event is now fired in a synchronized block (WELD-2827)
-
Ensured proxy target JPMS modules can read Weld JPMS modules (WELD-2828)
-
ProcessSyntheticAnnotatedTypenow correctly fired for types added via configurators (WELD-2831) -
Weld#addExtensionsno longer swallows exceptions (WELD-2833)
For the full list of what’s new in CDI 5.0, see the Jakarta CDI 5.0 specification page.
As always, if you find any issues, don’t hesitate to reach out!
[ Download ] [ Documentation ] [ Release ]
