--- old/src/java.xml.bind/share/classes/javax/xml/bind/ContextFinder.java 2017-05-03 18:05:14.603096046 +0300 +++ new/src/java.xml.bind/share/classes/javax/xml/bind/ContextFinder.java 2017-05-03 18:05:14.487096049 +0300 @@ -212,6 +212,9 @@ // the cast would fail, so generate an exception with a nice message throw handleClassCastException(context.getClass(), JAXBContext.class); } + + ModuleUtil.delegateAddOpensToImplModule(ModuleUtil.getClassesFromContextPath(contextPath, classLoader), spFactory); + return (JAXBContext) context; } catch (InvocationTargetException x) { // throw if it is exception not to be wrapped