Interesting, why was it rejected in DeltaSpike config then? Do you recall?

Now on config itself if cdi does +1 to support it. We should probably align
on the spec defaults, ie null would resolve to 0 for an int for instance.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-07-30 10:49 GMT+02:00 Mark Struberg <[email protected]>:

> http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#primitive_types_and_null_
> values
>
> "For the purposes of typesafe resolution and dependency injection,
> primitive types and their corresponding wrapper types in the package
> java.lang are considered identical and assignable. If necessary, the
> container performs boxing or unboxing when it injects a value to a field or
> parameter of primitive or wrapper type."
>
> LieGrue,
> strub
>
> > Am 30.07.2017 um 10:25 schrieb Romain Manni-Bucau <[email protected]
> >:
> >
> > Hmm, cdi does? was pretty sure injections had Object constraint. Do I
> get it wrong?
> >
> >
> > Romain Manni-Bucau
> > @rmannibucau |  Blog | Old Blog | Github | LinkedIn | JavaEE Factory
> >
> > 2017-07-30 10:06 GMT+02:00 Mark Struberg <[email protected]>:
> > CDI supports primitives. So I'm not quite sure what's the point?
> >
> > LieGrue,
> > strub
> >
> >
> > > Am 30.07.2017 um 09:26 schrieb Romain Manni-Bucau <
> [email protected]>:
> > >
> > >
> > > Alternative would be to make cdi support primitive, agree there is no
> blocker at all to do it but then for libs i think we need to limit to the
> most constrained impl, cdi here.
> > >
> >
> >
>
>

Reply via email to