langtools/test/tools/javac/6302184/HiddenOptionsShouldUseGivenEncodingTest.java
changeset 36778 e04318f39f92
parent 36526 3b41f1c69604
equal deleted inserted replaced
36777:28d33fb9097f 36778:e04318f39f92
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 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.
    26  * @bug 6302184 6350124 6357979
    26  * @bug 6302184 6350124 6357979
    27  * @summary javac hidden options that generate source should use the given
    27  * @summary javac hidden options that generate source should use the given
    28  * encoding, if available
    28  * encoding, if available
    29  * @library /tools/lib
    29  * @library /tools/lib
    30  * @modules jdk.compiler/com.sun.tools.javac.api
    30  * @modules jdk.compiler/com.sun.tools.javac.api
    31  *          jdk.compiler/com.sun.tools.javac.file
       
    32  *          jdk.compiler/com.sun.tools.javac.main
    31  *          jdk.compiler/com.sun.tools.javac.main
    33  *          jdk.jdeps/com.sun.tools.javap
    32  * @build toolbox.ToolBox
    34  * @build ToolBox
       
    35  * @run compile -encoding iso-8859-1 -XD-printsource T6302184.java
    33  * @run compile -encoding iso-8859-1 -XD-printsource T6302184.java
    36  * @run main HiddenOptionsShouldUseGivenEncodingTest
    34  * @run main HiddenOptionsShouldUseGivenEncodingTest
    37  */
    35  */
    38 
    36 
    39 import java.nio.file.Path;
    37 import java.nio.file.Path;
    40 import java.nio.file.Paths;
    38 import java.nio.file.Paths;
    41 import java.util.List;
    39 import java.util.List;
       
    40 
       
    41 import toolbox.ToolBox;
    42 
    42 
    43 // Original test: test/tools/javac/6302184/T6302184.sh
    43 // Original test: test/tools/javac/6302184/T6302184.sh
    44 public class HiddenOptionsShouldUseGivenEncodingTest {
    44 public class HiddenOptionsShouldUseGivenEncodingTest {
    45 
    45 
    46     public static void main(String[] args) throws Exception {
    46     public static void main(String[] args) throws Exception {