[weld-issues] [JBoss JIRA] Created: (WELD-898) Docs: Weld Reference - 2.2.3. Producer methods example error - two types named "Random"
Ondrej Zizka (JIRA)
jira-events at lists.jboss.org
Sun May 8 02:58:18 EDT 2011
Docs: Weld Reference - 2.2.3. Producer methods example error - two types named "Random"
---------------------------------------------------------------------------------------
Key: WELD-898
URL: https://issues.jboss.org/browse/WELD-898
Project: Weld
Issue Type: Bug
Components: Documentation
Affects Versions: 1.1.0.Final
Environment: http://docs.jboss.org/weld/reference/1.1.0.Final/en-US/html_single/#d0e948
Reporter: Ondrej Zizka
Priority: Minor
2.2.3. Producer methods
One of {{Random}}s must be fully qualified.
{code}
@ApplicationScoped
public class RandomNumberGenerator {
private Random random = new Random(System.currentTimeMillis());
@Produces @Named @Random int getRandomNumber() {
return random.nextInt(100);
}
}
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list