[JBoss JIRA] Created: (WELD-311) Producer field behavior differs from producer method
by alberto Gori (JIRA)
Producer field behavior differs from producer method
----------------------------------------------------
Key: WELD-311
URL: https://jira.jboss.org/jira/browse/WELD-311
Project: Weld
Issue Type: Bug
Components: Producers (Methods, Fields and Disposers)
Affects Versions: 1.0.0.CR1
Environment: Ubuntu 9.10, Java 6.
Reporter: alberto Gori
This producer field inject a Temp object into the request scope, corretly.
@Named @SessionScoped
public class HelloWorld implements Serializable {
@Produces @RequestScoped @TenTemp
public Temp getTemp() {
return new Temp(10);
}
}
The same producer written as a field create a session scoped object (note that the main bean is session scoped too) instead of request scoped.
@Named @SessionScoped
public class HelloWorld implements Serializable {
@Produces @RequestScoped @TenTemp Temp t = new Temp(10);
}
--
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
14 years, 3 months
[JBoss JIRA] Commented: (WELD-602) bean discovery doesn't scan jar files
by Mike Wilson (JIRA)
[ https://jira.jboss.org/browse/WELD-602?page=com.atlassian.jira.plugin.sys... ]
Mike Wilson commented on WELD-602:
----------------------------------
Considering that more than a year has passed since I reported this bug, it seems most probable that the WELD codebase has matured and implemented this part of the spec. I'm not currently working on a JCDI/WELD project so I can't easily verify that what we wanted to do does indeed work with the current version, but your test looks exactly what we tried to do back in 2009. Thanks.
> bean discovery doesn't scan jar files
> -------------------------------------
>
> Key: WELD-602
> URL: https://jira.jboss.org/browse/WELD-602
> Project: Weld
> Issue Type: Bug
> Components: Servlet Container Support
> Affects Versions: 1.0.0.CR1
> Reporter: Mike Wilson
> Assignee: Pete Muir
>
> Bean discovery only scans WEB-INF/classes and not jar files in WEB-INF/lib. According to section 12.1 of the WebBeans spec it should scan every jar that includes a META-INF/beans.xml.
> This results in beans not being discovered in applications that are modularized into multiple jar files.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 3 months