From a5ef08b619fff296cbe8e987d17ff5caffc703d7 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Thu, 30 Jan 2020 14:10:31 +0900 Subject: [PATCH] YARN-9743. [JDK11] TestTimelineWebServices.testContextFactory fails. (#1824) Contributed by Akira Ajisaka and Kinga Marton. --- .../applicationhistoryservice/webapp/ContextFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/webapp/ContextFactory.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/webapp/ContextFactory.java index ff52324261..c0daac9763 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/webapp/ContextFactory.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/webapp/ContextFactory.java @@ -83,7 +83,7 @@ private ContextFactory() { public static JAXBContext newContext(Class[] classes, Map properties) throws Exception { Class spFactory = Class.forName( - "com.sun.xml.internal.bind.v2.ContextFactory"); + "com.sun.xml.bind.v2.ContextFactory"); Method m = spFactory.getMethod("createContext", Class[].class, Map.class); return (JAXBContext) m.invoke((Object) null, classes, properties); } @@ -123,7 +123,7 @@ public static JAXBContext createContext(Class[] classes, public static JAXBContext createContext(String contextPath, ClassLoader classLoader, Map properties) throws Exception { Class spFactory = Class.forName( - "com.sun.xml.internal.bind.v2.ContextFactory"); + "com.sun.xml.bind.v2.ContextFactory"); Method m = spFactory.getMethod("createContext", String.class, ClassLoader.class, Map.class); return (JAXBContext) m.invoke(null, contextPath, classLoader,