Bug 363009 - Add comment to registerServletDelegate

The method is called from
org.eclipse.equinox.http.servletbridge.internal.Activator.start(BundleContext).
When the BridgeServlet instance is created from a classloader e.g. from
an application server like Tomcat and registers 'instance', it must be
assured that the Activator accesses BridgeServlet to the same class
instance. Otherwise 'instance' is null here while it was registered to
BridgeServlet.class before, but from a different classloader context.

Change-Id: If5d8137c3ce6e771d913c14b3bacc8c735174db7
Signed-off-by: Karsten Thoms <karsten.thoms@karakun.com>
Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.bundles/+/161113
Tested-by: Equinox Bot <equinox-bot@eclipse.org>
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
1 file changed