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
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to