langtools/test/tools/javac/sym/ElementStructureTest.java
changeset 36778 e04318f39f92
parent 36526 3b41f1c69604
child 40763 209113892b0d
equal deleted inserted replaced
36777:28d33fb9097f 36778:e04318f39f92
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    24 /**
    24 /**
    25  * @test
    25  * @test
    26  * @bug 8072480
    26  * @bug 8072480
    27  * @summary Check the platform classpath contains the correct elements.
    27  * @summary Check the platform classpath contains the correct elements.
    28  * @library /tools/lib
    28  * @library /tools/lib
    29  * @build ToolBox ElementStructureTest
       
    30  * @modules jdk.compiler/com.sun.tools.javac.code
    29  * @modules jdk.compiler/com.sun.tools.javac.code
    31  *          jdk.compiler/com.sun.tools.javac.api
    30  *          jdk.compiler/com.sun.tools.javac.api
    32  *          jdk.compiler/com.sun.tools.javac.main
    31  *          jdk.compiler/com.sun.tools.javac.main
    33  *          jdk.compiler/com.sun.tools.javac.platform
    32  *          jdk.compiler/com.sun.tools.javac.platform
    34  *          jdk.compiler/com.sun.tools.javac.util
    33  *          jdk.compiler/com.sun.tools.javac.util
    35  *          jdk.jdeps/com.sun.tools.classfile
    34  *          jdk.jdeps/com.sun.tools.classfile
    36  *          jdk.jdeps/com.sun.tools.javap
    35  *          jdk.jdeps/com.sun.tools.javap
       
    36  * @build toolbox.ToolBox ElementStructureTest
    37  * @run main ElementStructureTest
    37  * @run main ElementStructureTest
    38  */
    38  */
    39 
    39 
    40 import java.io.BufferedReader;
    40 import java.io.BufferedReader;
    41 import java.io.ByteArrayInputStream;
    41 import java.io.ByteArrayInputStream;
    97 import com.sun.tools.classfile.ConstantPoolException;
    97 import com.sun.tools.classfile.ConstantPoolException;
    98 import com.sun.tools.javac.api.JavacTaskImpl;
    98 import com.sun.tools.javac.api.JavacTaskImpl;
    99 import com.sun.tools.javac.code.Symbol.CompletionFailure;
    99 import com.sun.tools.javac.code.Symbol.CompletionFailure;
   100 import com.sun.tools.javac.platform.PlatformProvider;
   100 import com.sun.tools.javac.platform.PlatformProvider;
   101 
   101 
       
   102 import toolbox.ToolBox;
       
   103 
       
   104 
   102 /**To generate the hash values for version N, invoke this class like:
   105 /**To generate the hash values for version N, invoke this class like:
   103  *
   106  *
   104  *     java ElementStructureTest generate-hashes $LANGTOOLS_DIR/make/data/symbols/include.list (<classes-for-N> N)+
   107  *     java ElementStructureTest generate-hashes $LANGTOOLS_DIR/make/data/symbols/include.list (<classes-for-N> N)+
   105  *
   108  *
   106  * Where <classes-for-N> is the file produced by make/src/classes/build/tools/symbolgenerator/Probe.java.
   109  * Where <classes-for-N> is the file produced by make/src/classes/build/tools/symbolgenerator/Probe.java.