Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-1079

annotations on event set methods that interact with interceptors can result in compilation errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.2
    • Controls
    • None
    • xp

    Description

      An event set within a control interface with annotated methods can result in compilation errors. The errors will only occur when the interface has no methods of its own (annotated or not).

      Repro:
      Easy, just create a control interface with an event set that has annotated methods that interact with interceptors and compile (if you add any method to the interface you will not see the error). Ex:

      @ControlExtension
      public interface CallbackOnlyControl extends ExtensibleControl

      @EventSet
      public interface CallbackHere extends MessageBufferFailure

      { @MessageBuffer(retryCount=2, retryDelay="1s") void bufferedCallback(); }


      }

      Error:
      [apt] D:\src_15004jr\bea\weblogic92\test\wlwbvt\messageBufferingApp\genera
      tedsrc\controls\stateless\CallbackOnlyControlBean.java:104: cannot find symbol
      [apt] symbol : variable _CallbackHere_bufferedCallbackEvent
      [apt] location: class controls.stateless.CallbackOnlyControlBean.CallbackH
      ereNotifier
      [apt] preEvent(_CallbackHere_bufferedCallbackEvent, __bc_a
      rgArray, _CallbackHere_bufferedCallbackEventInterceptors);
      [apt] ^
      [apt] D:\src_15004jr\bea\weblogic92\test\wlwbvt\messageBufferingApp\genera
      tedsrc\controls\stateless\CallbackOnlyControlBean.java:104: cannot find symbol
      [apt] symbol : variable _CallbackHere_bufferedCallbackEventInterceptors
      [apt] location: class controls.stateless.CallbackOnlyControlBean.CallbackH
      ereNotifier
      [apt] preEvent(_CallbackHere_bufferedCallbackEvent, __bc_a
      rgArray, _CallbackHere_bufferedCallbackEventInterceptors);
      [apt]
      ^
      [apt] D:\src_15004jr\bea\weblogic92\test\wlwbvt\messageBufferingApp\genera
      tedsrc\controls\stateless\CallbackOnlyControlBean.java:131: cannot find symbol
      [apt] symbol : variable _CallbackHere_bufferedCallbackEvent
      [apt] location: class controls.stateless.CallbackOnlyControlBean.CallbackH
      ereNotifier
      [apt] postEvent(CallbackHere_bufferedCallbackEvent, __bc
      argArray, null, __bc_thrown, _CallbackHere_bufferedCallbackEventInterceptors, __
      bc_pivotedInterceptor);
      [apt] ^
      [apt] D:\src_15004jr\bea\weblogic92\test\wlwbvt\messageBufferingApp\genera
      tedsrc\controls\stateless\CallbackOnlyControlBean.java:131: cannot find symbol
      [apt] symbol : variable _CallbackHere_bufferedCallbackEventInterceptors
      [apt] location: class controls.stateless.CallbackOnlyControlBean.CallbackH
      ereNotifier
      [apt] postEvent(CallbackHere_bufferedCallbackEvent, __bc
      argArray, null, __bc_thrown, _CallbackHere_bufferedCallbackEventInterceptors, __
      bc_pivotedInterceptor);

      Attachments

        Activity

          People

            grunlowen matt c
            grunlowen matt c
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: