Add a @ShouldOverride annotation to accmod

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      In Jenkins project we have started extending API to support Jenkins Pipeline in some case. We use default implementations in interfaces and abstract classes for it. Recent example: https://github.com/jenkinsci/jenkins/pull/2975/

      Problem: Both old AbstractProject/AbstractBuild and new Job/Run methods have default implementations, Java code does not require overrides.

      I propose to add a new annotation to https://github.com/kohsuke/access-modifier, which would fail the compilation if the method is not overridden. It would allow us to evolve the API more smoothly.

            Assignee:
            Unassigned
            Reporter:
            Oleg Nenashev
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: