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

Gaetan Boismal
14.35.2015 fb90917ba9a7f1cfc12f2a0bcaad662c6b923083
opendj-server-legacy/src/main/java/org/opends/server/admin/client/spi/Driver.java
@@ -207,11 +207,11 @@
        throws PropertyException {
      // First check that the requested type of managed object
      // corresponds to the path.
      AbstractManagedObjectDefinition<?, ?> supr = target
      AbstractManagedObjectDefinition<?, ?> actualType = target
          .getManagedObjectDefinition();
      if (!supr.isParentOf(d)) {
      if (!d.isParentOf(actualType)) {
        throw PropertyException.defaultBehaviorException(
            nextProperty, new DefinitionDecodingException(supr,
            nextProperty, new DefinitionDecodingException(d,
                Reason.WRONG_TYPE_INFORMATION));
      }