[weld-issues] [JBoss JIRA] Commented: (WELD-372) Consider whether we should treat AnnotatedClass definitions which do exactly mirror the reflected class definition as an error
Pete Muir (JIRA)
jira-events at lists.jboss.org
Wed Jan 13 11:27:30 EST 2010
[ https://jira.jboss.org/jira/browse/WELD-372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12503919#action_12503919 ]
Pete Muir commented on WELD-372:
--------------------------------
Cases like that should be an error.
On Wed, Jan 13, 2010 at 7:39 AM, Pete Muir <pmuir at redhat.com> wrote:
What about the case like:
class Foo {
Foo(String foo, String bar, String baz) {}
}
but the AnnotatedType specifies a constructor with only two parameters. Options I see:
a) Weld does some magic and calls the third parameter with null (for example)
b) Weld errors at runtime
c) We detect the error at boot
IMO (c) is most friendly.
> Consider whether we should treat AnnotatedClass definitions which do exactly mirror the reflected class definition as an error
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: WELD-372
> URL: https://jira.jboss.org/jira/browse/WELD-372
> Project: Weld
> Issue Type: Bug
> Components: Bootstrap and Metamodel API
> Reporter: Pete Muir
> Priority: Critical
> Fix For: 1.0.1.CR1
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list