News - tagged as "release"

Weld 6.0.3.Final

2025-5-20   release   Matej Novotny

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’t affect most deployments. In fact it requires at least all of the below condition to start appearing:

      • Using CDI producers along with InterceptionFactory

      • Repeatedly creating these beans, so most likely @Dependent bean

      • And most importantly, the AnnotatedType backing the bean has to have an annotation with a non-empty array type value

    • Even if this issue is unlikely to manifest, we recommend users to update their Weld version if possible

If you find any issues with the current release, don’t hesistate to report them via usual channels.


Weld 5.1.6.Final

2025-5-20   release   Matej Novotny

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 type value

Because this requires a very narrow set of conditions, it is reasonable to believe that most deployments are unaffected.
That said, if you can upgrade, we definitely encourage you to!

For more details and links to the PRs, feel free to browse WELD-2815 JIRA.


Weld 6.0.2.Final

2025-4-3   release   Matej Novotny

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!


Weld 6.0.1.Final

2025-2-18   release   Matej Novotny

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 interested in more gory details, they are in the issue and/or pull requests linked to it.

  • Make ElAwareBeanManager injectable as a bean type

    • Inability to perform this was an oversight as it is a requirement in Jakarta EE WebProfile specification.

As always, do report any bugs you encounter so that we can squash them as soon as possible!


Weld 5.1.5.Final

2025-1-21   release   Matej Novotny

A tiny update for Weld 5 has just been released.

We have identified a bug that EJC (Eclipse Java Compiler) users can encounter in combination with interceptors and lambdas in their beans and fixed it. This could, in certain circumstances, yield a very hard to decipher bytecode generation error.

Note that never manifests when using standard javac compiler. For those interested, the details are in the WELD-2806 JIRA.


Weld 6.0.0.Final

2024-12-16   release   Matej Novotny

Since there have been no further bugs reported, Weld 6.0.0.CR2 has evolved into its Final form. Say hello to Weld API 6.0.Final as well as Weld Core 6.0.0.Final!

Since there are no changes from the previous CR2 version, early adopters shouldn’t encounter any unwelcome surprises.

Nonetheless, should you run into any bugs, do get in touch so that we can squash them as soon as possible!

And speaking of getting in touch, we recognize that JIRA can be a little daunting, so we are trying to make that easier by enabling GitHub discussions. You can now ask your question in:

And don’t you worry, the weld-dev mailing list is still kicking plus, for the time being, we are still using JIRA for per-release issue tracking.


Weld 5.1.4.Final

2024-12-16   release   Matej Novotny

A small update for Weld 5.1 (5.1.4.Final) has been released.

List of changes from 5.1.3.Final version:

  • Fix resource injection into beans added via extensions (WELD-2798)

  • Prevent file leak in Weld’s ServiceLoader (WELD-2800)

    • Note that most environments were unaffected by this; the only reported issue was for testing setup of GlassFish on Windows machines

  • Deprecate WeldCrossContextFilter, to be removed in Weld 6 (WELD-2803)

  • Update custom TCK exclusion list used for relaxed mode testing (WELD-2806)


Weld 6.0.0.CR2

2024-11-28   release   Matej Novotny

Turns out we forgot to perform some code cleanup in the CR1 - so here goes 6.0.0.CR2 which removes deprecated code pieces. Note that Weld API is unchanged; the only deprecations there are changes coming in recent CDI versions so we’ve kept that code around for now.

Resolved issues in this version:

  • Revisit deprecated code in Weld Core (WELD-2804)

  • Remove WeldCrossContextFilter (WELD-2803)

As per usual, please report any issues you discover with this release so that we can squash those bugs.


Weld 6.0.0.CR1

2024-11-13   release   Matej Novotny

First version of the Jakarta EE TCKs has finally landed in Central and with that, we have re-enabled all remaining TCK tests and are confident enough to issue a candidate release for Weld 6!

Note that both, Weld API and Weld Core artifacts have been released.

Here is the list of changes from last Beta:

  • Implement validation for unproxyability of sealed types (WELD-2799)

  • Correct injection into @Resource fields of beans registered through extensions (WELD-2798)

  • Improve the algorithm that determines BeanManager instance for synthetic beans coming from build compatible extensions (WELD-2794)

  • Weld OSGi bundle now correctly exports org.jboss.weld.util.reflection (WELD-2793)

  • Weld OSGi bundle now contains imports for built-in bean proxies (WELD-2796)

  • Re-introduce Jakarta EE CDI TCK into continuous integration (WELD-2778)

    • The TCK artifact in Central is not yet final (it is M1) but it is enough to make sure Weld passes all related CDI tests with WildFly

  • Fix possible file leak in org.jboss.weld.util.ServiceLoader (WELD-2800)

    • This was only reported during GlassFish testing and affected just Windows machines

  • Resolve license conflict of jboss-logging-processor inside shaded Weld SE JAR (WELD-2795)

As per usual, please report any issues you discover with this release so that we can squash those bugs.


Weld 5.1.3.Final

2024-8-27   release   Matej Novotny

A new version of Weld 5.1 has landed in Maven Central.

This is a bug squashing round which backports several notable fixes and changes from Weld 6 into Weld 5:

  • Change BeanManager resolution process for BuildCompatibleExtension not belonging to any bean archive (WELD-2794)

  • LazySessionBeanStore no longer swallows exceptions happening when attempting to initiate HTTP session (WELD-2762)

  • Correct how we determine proxy package for beans with unassignable types in their bean type set (WELD-2763)

    • This was only problematic in environments using WeldDefaultProxyServices to define their proxies (such as Weld SE)

  • Correct CommonLogger to mention correct GAV for Jandex (WELD-2770)

  • Added the ability to register Build Compatible Extension in Weld SE without discovery (WELD-2772)

  • Correct inheritance of producer fields if there is an extension present (WELD-2773)

  • Make sure @Default qualifier is added to events fired via BeanManager#getEvent() where appropriate (WELD-2775)

  • Observer method confiurator now correctly allows to override Reception settings without changing its notify() method (WELD-2786)

  • Clean up legacy Jetty integration parts (WELD-2787)

  • Use Lock instead of synchronized within ContextualInstanceStrategy to be more virtual thread-friendly (WELD-2788)

  • Skip superclass declarations of final methods when creating proxies (WELD-2785)

  • Ensure OSGi bundle has access to all dependencies needed for built-in beans (WELD-2796)