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

Matthew Swift
19.34.2014 cadc5cd0f0d753d35ffffc0555348a02852b6c37
opendj-sdk/opendj3-server-dev/src/server/org/opends/server/admin/server/ServerManagementContext.java
@@ -224,11 +224,11 @@
        throws PropertyException {
      // First check that the requested type of managed object
      // corresponds to the path.
      AbstractManagedObjectDefinition<?, ?> supr = target
      AbstractManagedObjectDefinition<?, ?> actual = target
          .getManagedObjectDefinition();
      if (!supr.isParentOf(d)) {
      if (!d.isParentOf(actual)) {
        throw PropertyException.defaultBehaviorException(
            nextProperty, new DefinitionDecodingException(supr,
            nextProperty, new DefinitionDecodingException(actual,
                Reason.WRONG_TYPE_INFORMATION));
      }