From b38ce54410af8fc62d8ae6fe694b580e509ae73a Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Thu, 14 Feb 2019 15:54:27 -0500 Subject: [PATCH] Sets the child class loader to parent class loader. This prevents odd behavior in jdk 11 + Fixes https://github.com/spring-cloud/spring-cloud-netflix/issues/3101 --- .../cloud/context/named/NamedContextFactory.java | 3 +++ .../cloud/context/named/NamedContextFactoryTests.java | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/context/named/NamedContextFactory.java b/spring-cloud-context/src/main/java/org/springframework/cloud/context/named/NamedContextFactory.java index 57538878..4fc16fbf 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/context/named/NamedContextFactory.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/context/named/NamedContextFactory.java @@ -128,6 +128,9 @@ public abstract class NamedContextFactory