< prev index next >

langtools/test/tools/javac/file/ExplodedImage.java

Print this page




  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 8067138
  27  * @summary Verify that compiling against the exploded JDK image works, and that Locations close
  28  *          the directory streams properly when working with exploded JDK image.
  29  * @library /tools/lib
  30  * @modules jdk.compiler/com.sun.tools.javac.api
  31  *          jdk.compiler/com.sun.tools.javac.code
  32  *          jdk.compiler/com.sun.tools.javac.main
  33  *          jdk.jdeps/com.sun.tools.javap
  34  * @build toolbox.ToolBox ExplodedImage
  35  * @run main/othervm ExplodedImage modules/* testDirectoryStreamClosed
  36  * @run main/othervm ExplodedImage modules/* testCanCompileAgainstExplodedImage
  37  */
  38 
  39 import java.io.File;
  40 import java.io.IOException;
  41 import java.io.InputStream;
  42 import java.net.URI;
  43 import java.nio.file.DirectoryStream;
  44 import java.nio.file.FileSystems;
  45 import java.nio.file.Files;
  46 import java.nio.file.Path;
  47 import java.util.Arrays;
  48 import java.util.EnumSet;
  49 import java.util.List;
  50 import javax.lang.model.element.TypeElement;
  51 import javax.tools.Diagnostic;
  52 import javax.tools.DiagnosticListener;
  53 import javax.tools.JavaCompiler;




  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 8067138
  27  * @summary Verify that compiling against the exploded JDK image works, and that Locations close
  28  *          the directory streams properly when working with exploded JDK image.
  29  * @library /tools/lib
  30  * @modules jdk.compiler/com.sun.tools.javac.api
  31  *          jdk.compiler/com.sun.tools.javac.code
  32  *          jdk.compiler/com.sun.tools.javac.main

  33  * @build toolbox.ToolBox ExplodedImage
  34  * @run main/othervm ExplodedImage modules/* testDirectoryStreamClosed
  35  * @run main/othervm ExplodedImage modules/* testCanCompileAgainstExplodedImage
  36  */
  37 
  38 import java.io.File;
  39 import java.io.IOException;
  40 import java.io.InputStream;
  41 import java.net.URI;
  42 import java.nio.file.DirectoryStream;
  43 import java.nio.file.FileSystems;
  44 import java.nio.file.Files;
  45 import java.nio.file.Path;
  46 import java.util.Arrays;
  47 import java.util.EnumSet;
  48 import java.util.List;
  49 import javax.lang.model.element.TypeElement;
  50 import javax.tools.Diagnostic;
  51 import javax.tools.DiagnosticListener;
  52 import javax.tools.JavaCompiler;


< prev index next >