Emond Papegaaij commented on Bug WELD-1600

You should therefore make sure to limit calling createAnnotatedType() to startup before you start processing requests.

So I should call createAnnotatedType on all types that could get injected during init of the application? That does not sound like a workable solution, because there's no way a wicket application can know beforehand which components require injection. InjectionTargets (and thus also AnnotatedTypes) are created lazily for components that require injection on the first time they are instantiated and cached for later use. It's not possible to know beforehand which InjectionTargets will be required by a starting application, nor is it possible to know which InjectionTargets are required by a session restored from a persisted cache.

When I change your patch for both tests to use the same deployment name, both tests pass.

Can you tell me what you changed? I've added the name attribute to the Deploy annotations and the testcase is still failing.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to