Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MNG-6275] Maven Embedder compatible fix
- Embedded sets up a classloader to mimic the boot classpath based on parsing the classworldConf - This 'bootLoader' is then installed as the context classloader in the current thread - By default, a running JVM will start with a thread context classloader of 'null' to indicate the system classloader should be used - This change switches to follow the 'correct' behaviour of following the context classloader and falling back to the system class loader only in the case where the context classloader is null. - For running from the CLI, we expect that the thread context classloader will always be null so this should be as before - For running from embedder, we expect that the thread context classloader will have been correctly configured, so this should behave as intended
- Loading branch information