From 2459c67edc7eadb7ff23ebf3bf42ed738b0ae8bd Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Mon, 30 May 2016 10:43:12 +0000
Subject: [PATCH] OPENDJ-2987 Fix SDK Objectclass to inherit all optional attributes from superior class
---
opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/ObjectClass.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/ObjectClass.java b/opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/ObjectClass.java
index f7779dc..18c1c3d 100644
--- a/opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/ObjectClass.java
+++ b/opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/ObjectClass.java
@@ -929,12 +929,12 @@
}
// Inherit all optional attributes from superior class.
- i = superiorClass.getRequiredAttributes().iterator();
- if (i.hasNext() && requiredAttributes == Collections.EMPTY_SET) {
- requiredAttributes = new HashSet<>();
+ i = superiorClass.getOptionalAttributes().iterator();
+ if (i.hasNext() && optionalAttributes == Collections.EMPTY_SET) {
+ optionalAttributes = new HashSet<>();
}
while (i.hasNext()) {
- requiredAttributes.add(i.next());
+ optionalAttributes.add(i.next());
}
superiorClasses.add(superiorClass);
--
Gitblit v1.10.0