public boolean hasSameConstructorAspectLength(Advisor other) { if (this.getClazz() != other.getClazz()) { throw new IllegalArgumentException("The advisors must be of the same type. Mine: " + this.getClazz().getName() + "; other: " + other.getClazz().getName()); } ConstructorInfo[] myInfos = this.getConstructorInfos(); ConstructorInfo[] otherInfos = other.getConstructorInfos(); return JoinPointComparator.hasSameConstructorAspectLength(myInfos, otherInfos); } }