Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1033

@Init should supports to annotate on Type

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.1
    • Component/s: Databind 2
    • Labels:
      None

      Description

      In our last Spec. We don't call super's init method if the extended class doesn't has @Init or the @Init(superclass) is false (default false).

      for the case SupervisingController extends AbstractPresenter but it doesn't has a method annotated with @Init(superclass=true), then we will not call the super's init method.
      your could add a empty method with @Init(superclass=true) to fix this, but this is very inconvenient.
      For this case, I think we could add a Sepc. to allow user to add @Init to the Type (if he doesn't use @Init in method, should check only one @Init in a class still) to provide the extra info to call to supers init()).
      ex,
      @Init(superclass=true)
      public class SupervisingController

      {...}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dennis dennis
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: