< prev index next >

jdk/test/javax/xml/bind/jxc/8073872/SchemagenStackOverflow.java

Print this page




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8073872
  27  * @summary test that stackoverflow is not observable when element
  28  *          references containing class
  29  * @modules java.xml
  30  * @modules java.xml.bind
  31  * @compile Foo.java
  32  * @run testng/othervm SchemagenStackOverflow
  33  */
  34 
  35 import java.io.IOException;
  36 import java.nio.file.Files;
  37 import java.nio.file.Path;
  38 import java.nio.file.Paths;
  39 import java.util.stream.Collectors;
  40 import javax.xml.bind.JAXBContext;
  41 import javax.xml.bind.SchemaOutputResolver;
  42 import javax.xml.transform.Result;
  43 import javax.xml.transform.stream.StreamResult;
  44 import org.testng.Assert;
  45 import org.testng.annotations.Test;
  46 
  47 public class SchemagenStackOverflow {
  48 
  49     @Test
  50     public void schemagenStackOverflowTest() throws Exception {
  51         // Create new instance of JAXB context




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8073872
  27  * @summary test that stackoverflow is not observable when element
  28  *          references containing class

  29  * @modules java.xml.bind
  30  * @compile SchemagenStackOverflow.java Foo.java
  31  * @run testng/othervm SchemagenStackOverflow
  32  */
  33 
  34 import java.io.IOException;
  35 import java.nio.file.Files;
  36 import java.nio.file.Path;
  37 import java.nio.file.Paths;
  38 import java.util.stream.Collectors;
  39 import javax.xml.bind.JAXBContext;
  40 import javax.xml.bind.SchemaOutputResolver;
  41 import javax.xml.transform.Result;
  42 import javax.xml.transform.stream.StreamResult;
  43 import org.testng.Assert;
  44 import org.testng.annotations.Test;
  45 
  46 public class SchemagenStackOverflow {
  47 
  48     @Test
  49     public void schemagenStackOverflowTest() throws Exception {
  50         // Create new instance of JAXB context


< prev index next >