| Hi Matěj, thanks for updating the issue. The quick fix is indeed possible, but then you would create a version of Weld that would only work on jetty >=10 and old versions would need to be used for jetty < 10. As we expect jetty-9.4 to live for some time, this would be best to avoid as we want the latest version of weld to run fine on all current releases of jetty. Our current idea is that the decorators would be linked in using either reflection or method handles. In order to work, jetty would have to be told to accept such decorators, the webapp would have to nominate a instance to be the decorator and that instance would need to have a signature that met the jetty criteria. If the nominated instance is not sensible, then jetty will probably throw an exception. Currently I can't see an easy way to ensure the decorator is sensible other than by documentation. Ideally in future there could be a standard java.inject.Injector interface (or jakarta.inject.Injector) interface that we could use for such linkage, but failing that I think documenting the signature is the best we can do. |