[weld-dev] [jsr-299-eg] Updated spec with @BeanTypes and clarification of @New

Roberto Chinnici Roberto.Chinnici at Sun.COM
Mon Oct 19 12:03:56 EDT 2009


Gavin King wrote:
> Check out sections 2.2.2, 3.12, 3.5.2 together with the new sentence
> regarding @New added to 5.7.1 and 11.3.4.
>
> This is everything that is needed for 299 to *elegantly* pass the 330 TCK.
>   

Can you explain again the new semantics for @New and why it is needed?

I'm reading 3.12 and I have trouble understanding how a class inside an 
archive which is NOT a bean deployment archive could give rise to a 
managed bean (at least in the sense of 299). It seems then that the 
premise of 3.12 is empty and no second beans will ever be created. And I 
don't think you meant for DriversSeat and SpareTire in your example to 
be annotated with @ManagedBean, since the 330 TCK doesn't do that.

Also, I'm not sure why you excluded @New in 11.3.4. Doesn't that make 
the SPI less powerful than the annotations?

--Roberto



More information about the weld-dev mailing list