Beehive
  1. Beehive
  2. BEEHIVE-795

Missing compile error when annotating a shared flow as "longLived"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: v1m1
    • Fix Version/s: 1.0
    • Component/s: NetUI
    • Labels:
      None

      Description

      A shared flow is implicitly "longLived" because it remains in the session unless explicitly deleted before the end of the session. The "longLived" annotation should be disallowed on a shared flow.

      This code compiles without error, but I think it should produce an error.

      @Jpf.Controller(longLived=true,
      simpleActions=

      { @Jpf.SimpleAction(name="home", path="/home.faces") }

      ,
      catches=

      { @Jpf.Catch(type=PageFlowException.class, method="handlePageFlowException"), @Jpf.Catch(type=Exception.class, method="handleException") }

      )

        Activity

        Hide
        Rich Feit added a comment -

        I can take this one...

        Show
        Rich Feit added a comment - I can take this one...
        Hide
        Rich Feit added a comment -

        Fixed with revision 191006.

        Show
        Rich Feit added a comment - Fixed with revision 191006.
        Hide
        Alejandro Ramirez added a comment -

        Julie, please verify this

        Show
        Alejandro Ramirez added a comment - Julie, please verify this
        Hide
        Julie Zhuo added a comment -

        Verified at rev226883. It now produces the following compiler error.

        D:\..path..\JIRA795\SharedFlow.java:16: The "longLived" attribute may only be used on a class that extends org.apache.beehive.netui.pageflow.PageFlowController.public class SharedFlow ^1 error

        Show
        Julie Zhuo added a comment - Verified at rev226883. It now produces the following compiler error. D:\..path..\JIRA795\SharedFlow.java:16: The "longLived" attribute may only be used on a class that extends org.apache.beehive.netui.pageflow.PageFlowController.public class SharedFlow ^1 error

          People

          • Assignee:
            Julie Zhuo
            Reporter:
            John Rohrlich
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development