7 * published by the Free Software Foundation.
8 *
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 4761384
27 * @compile -XDignore.symbol.file I18NTest.java
28 * @run main I18NTest
29 * @summary Test to see if class files with non-ASCII characters can be run
30 * @author Joseph D. Darcy, Kumar Srinivasan
31 */
32
33
34 import java.util.ArrayList;
35 import java.io.File;
36 import java.util.List;
37
38 public class I18NTest extends TestHelper {
39 static String fileName = null;
40 public static void main(String... args) throws Exception {
41 String defaultEncoding = System.getProperty("file.encoding");
42 if (defaultEncoding == null) {
43 System.err.println("Default encoding not found; Error.");
44 return;
45 }
46 if (!defaultEncoding.equals("Cp1252")) {
|
7 * published by the Free Software Foundation.
8 *
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 4761384
27 * @modules java.compiler
28 * @compile -XDignore.symbol.file I18NTest.java
29 * @run main I18NTest
30 * @summary Test to see if class files with non-ASCII characters can be run
31 * @author Joseph D. Darcy, Kumar Srinivasan
32 */
33
34
35 import java.util.ArrayList;
36 import java.io.File;
37 import java.util.List;
38
39 public class I18NTest extends TestHelper {
40 static String fileName = null;
41 public static void main(String... args) throws Exception {
42 String defaultEncoding = System.getProperty("file.encoding");
43 if (defaultEncoding == null) {
44 System.err.println("Default encoding not found; Error.");
45 return;
46 }
47 if (!defaultEncoding.equals("Cp1252")) {
|