Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30002

Improve Util.isOverridden

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None

      Util.isOverridden works only on public methods.

      It needs to be improved in order to inspect non-public too through the inheritance. For example is this case:

      public abstract class Base {
          protected abstract void method();
      }
      public abstract class Intermediate extends Base {
          protected void method() {}
      }
      public class Derived extends Intermediate {}
      

      A call to isOverridden(Base.class, Derived.class, "method") should return true.

            amuniz Antonio Muñiz
            amuniz Antonio Muñiz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: