Try harder to acquire class mapping 04/77304/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 15 Oct 2018 12:44:48 +0000 (14:44 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 26 Oct 2018 15:48:01 +0000 (17:48 +0200)
commit2f752410f76a049691dc644a004810e4466e2305
tree4f57114e8bae7cb9b94821c0415a3a50b6246fb2
parent2b66760afd9e36fabb69fe23b04287e588aa8ea8
Try harder to acquire class mapping

We can perform a third try when we failed to load an augmentation
using TCCL by installing the candidate class classloader as the TCCL.

This can help in situations where we are invoked from a context where
the TCCL is not set up to actually see binding classes properly.

JIRA: MDSAL-379
Change-Id: I56d65494cbce32aee0592e3f0799a2bf283e6d17
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit fde5334962bdf4e098af5c869e723e4c4c06c606)
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/DataObjectCodecContext.java