mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
17.07.2006 2bf1728dfbe06a267066a27429c51fe294c14ec0
Update the objectclass processing code to ensure that a given class cannot be
listed as its own superior (this was previously possible for the "top" class).

OpenDS Issue Number: 666
1 files modified
7 ■■■■■ changed files
opends/src/server/org/opends/server/schema/ObjectClassSyntax.java 7 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/schema/ObjectClassSyntax.java
@@ -800,6 +800,13 @@
    }
    // This should only happen for the "top" objectclass.
    if (superiorClass.getOID().equals(oid))
    {
      superiorClass = null;
    }
    return new ObjectClass(primaryName, names, oid, description, superiorClass,
                           requiredAttributes, optionalAttributes,
                           objectClassType, isObsolete, extraProperties);