Marko Lukša commented on Bug WELD-1172

Same cause as with WELD-1171.

Usually enums are loaded as BackedAnnotatedTypes and thus the check for WELD-000614 is skipped. But Forge supplies its own AnnotatedTypes in ObserverCaptureExtension and thus the enums are treated as UnbackedAnnotatedTypes and the constructor parameter count check is performed and always fails.

I have simply added an if statement that skips the check for enums. Maybe this should be modified so that BackedAnnotatedConstructor which had its parameters set to empty list, should be marked somehow and then BackedAnnotatedTypes should only skip the check for constructors that are marked (instead of all enums).

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