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

@Init should supports to annotate on Type

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.1
    • 6.0.0
    • Databind 2
    • None

      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

      {...}

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

              Created:
              Updated:
              Resolved: