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

Clarify statement wrt exception for Interceptionfactory.createInterceptedInstance

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0 .Final
    • None
    • None
    • None

      11.7. Apply interceptor programmatically states for method createInterceptedInstance():

      The method can be only called once, subsequent calls will throw an exception.

      Which exception?

            [CDI-669] Clarify statement wrt exception for Interceptionfactory.createInterceptedInstance

            Nice catch, we should clarify this. I'd say IllegalStateException is a way to go.

            Matěj Novotný added a comment - Nice catch, we should clarify this. I'd say IllegalStateException is a way to go.

            Javadoc states IllegalStateException.

            Martin Kouba added a comment - Javadoc states IllegalStateException .

              Unassigned Unassigned
              tremes1@redhat.com Tomas Remes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: