[weld-issues] [JBoss JIRA] (CDITCK-449) specify types with @Typed
Title: Message Title Martin Kouba commented on CDITCK-449 Re: specify types with @Typed Although the spec does not explicitly define when is the @Typed restriction applied, it's clear that it's restricting the set of bean types (one of the bean attributes). Since Annotated interfaces are used to specify/override metadata on a bean class and not to define a bean itself, I believe that the restriction should be applied later (when BeanAttributes are built). So I'm in favor to reject this issue. Add Comment This message was sent by Atlassian JIRA (v6.3.1#6329-sha1:7df76f1) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (CDITCK-449) specify types with @Typed
Title: Message Title Mark Struberg commented on CDITCK-449 Re: specify types with @Typed But in that case Annotated#getTypeClosures() would be totally useless and always be the same as getBaseType() + superclasses. The description of Annotated#getTypeClosure() strongly indicates that @Typed must get applied to AnnotatedType already. Add Comment This message was sent by Atlassian JIRA (v6.3.1#6329-sha1:7df76f1) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (CDITCK-449) specify types with @Typed
Title: Message Title Martin Kouba commented on CDITCK-449 Re: specify types with @Typed But in that case Annotated#getTypeClosures() would be totally useless and always be the same as getBaseType() + superclasses. No, it's not. I can imagine a portable extension which performs a restriction similar to @Typed based on different source of metadata (XML, different annotation, ...), i.e. the extension can override the type closure read from the bean class. The description of Annotated#getTypeClosure() strongly indicates that @Typed must get applied to AnnotatedType already. I don't share the same opinion. Which part of the following sentence from 11.4. Alternative metadata sources is relevant? getTypeClosure() returns all types to which the base type should be considered assignable. Add Comment This message was sent by Atlassian JIRA (v6.3.1#6329-sha1:7df76f1) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues
[weld-issues] [JBoss JIRA] (CDITCK-449) specify types with @Typed
Title: Message Title Tomas Remes commented on CDITCK-449 Re: specify types with @Typed Look's like consensus is not reachable on this. Mark Struberg can you please open an CDI clarification issue? Add Comment This message was sent by Atlassian JIRA (v6.3.1#6329-sha1:7df76f1) ___ weld-issues mailing list weld-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-issues