From 7175b69fde1deb53e89cd00e748732646a48c0c4 Mon Sep 17 00:00:00 2001 From: Jack Li Date: Mon, 16 Oct 2017 19:04:00 -0700 Subject: [PATCH] Fix JDK-8185668: JAXBContext.newInstance( String contextPath ) javadoc is missing the @param and @return values --- jaxb-api/src/main/java/javax/xml/bind/JAXBContext.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jaxb-api/src/main/java/javax/xml/bind/JAXBContext.java b/jaxb-api/src/main/java/javax/xml/bind/JAXBContext.java index 34d084e1..eef7517b 100644 --- a/jaxb-api/src/main/java/javax/xml/bind/JAXBContext.java +++ b/jaxb-api/src/main/java/javax/xml/bind/JAXBContext.java @@ -349,6 +349,14 @@ protected JAXBContext() { * {@link #newInstance(String,ClassLoader)} method with * the context class loader of the current thread. * + * @param contextPath + * List of java package names that contain schema + * derived class and/or java to schema (JAXB-annotated) + * mapped classes. + * Packages in {@code contextPath} that are in named modules must be + * {@linkplain java.lang.Module#isOpen open} to at least the {@code java.xml.bind} module. + * + * @return a new instance of a {@code JAXBContext} * @throws JAXBException if an error was encountered while creating the * {@code JAXBContext} such as *