From df0af76ae6838013c0e66bf5d17c7e7aae44dac2 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Thu, 01 Oct 2026 09:35:55 +0000
Subject: [PATCH] [#1120] Apply a change to plugin-type on an enabled plugin without disabling and enabling it again (#1127)

---
 opendj-server-legacy/src/main/java/org/opends/server/api/plugin/DirectoryServerPlugin.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/api/plugin/DirectoryServerPlugin.java b/opendj-server-legacy/src/main/java/org/opends/server/api/plugin/DirectoryServerPlugin.java
index cdc0b8b..0c5f4da 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/api/plugin/DirectoryServerPlugin.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/api/plugin/DirectoryServerPlugin.java
@@ -13,6 +13,7 @@
  *
  * Copyright 2006-2010 Sun Microsystems, Inc.
  * Portions Copyright 2014-2016 ForgeRock AS.
+ * Portions Copyright 2026 3A Systems, LLC.
  */
 package org.opends.server.api.plugin;
 
@@ -167,7 +168,11 @@
   /**
    * Performs any necessary finalization for this plugin.  This will
    * be called just after the plugin has been deregistered with the
-   * server but before it has been unloaded.
+   * server but before it has been unloaded.  It is also called when
+   * {@link #initializePlugin} throws, on an instance that was never
+   * registered: it must then release whatever
+   * {@code initializePlugin} acquired before it failed, and must not
+   * assume that it completed.
    */
   public void finalizePlugin()
   {

--
Gitblit v1.10.0