Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-737

Typo in the javadoc of ProcessBean

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Trivial Trivial
    • None
    • 2.0.SP1
    • Javadoc and API
    • None

      Just a typo, the `@return` tag of `javax.enterprise.inject.spi.ProcessBean#getAnnotated` does not link to the right type. It should be:

      /**
           * Returns the {@link javax.enterprise.inject.spi.AnnotatedType} representing the bean class, the
           * {@link javax.enterprise.inject.spi.AnnotatedMethod} representing the producer method, or the
           * {@link javax.enterprise.inject.spi.AnnotatedField} representing the producer field.
           * 
           * <p>
           * If invoked upon a {@link ProcessSyntheticBean} event, non-portable behavior results and the returned value should be ignored.
           * </p>
           * 
           * @return the {@link javax.enterprise.inject.spi.Annotated} for the bean being registered
           * @throws IllegalStateException if called outside of the observer method invocation
           */
          public Annotated getAnnotated();
      

      The existing code references `AnnotatedType`.

              Unassigned Unassigned
              clement.escoffier@redhat.com Clement Escoffier (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: