[cdi-dev] [JBoss JIRA] Resolved: (CDI-145) allow @Disposes methods also for producer fields
Pete Muir (JIRA)
jira-events at lists.jboss.org
Thu Sep 29 12:23:31 EDT 2011
[ https://issues.jboss.org/browse/CDI-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir resolved CDI-145.
---------------------------
Resolution: Done
> allow @Disposes methods also for producer fields
> ------------------------------------------------
>
> Key: CDI-145
> URL: https://issues.jboss.org/browse/CDI-145
> Project: CDI Specification Issues
> Issue Type: Feature Request
> Components: Beans, Concepts
> Affects Versions: 1.0
> Reporter: Mark Struberg
> Assignee: Pete Muir
> Fix For: 1.1 (Confirmed)
>
>
> The current wording of 3.3.7 only allowed disposal methods for producer methods. Producer fields are imo not covered by the wording and cannot get @Disposed
> > 3.3.7. Disposer method resolution
> > A disposer method is bound to a producer method if:
> > • the producer method is declared by the same bean class as the
> > disposer method, and
> > • the producer method is assignable to the disposed parameter,
> > according to the rules of typesafe resolution defined in Section 5.2,
> > "Typesafe resolution" (using Section 5.2.3, "Assignability of raw and
> > parameterized types").
> We should change this and also allow the disposal of producer fields.
> This is especially needed in the hindsight of 3.5 Resource fields which currently cannot get disposed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the cdi-dev
mailing list