< prev index next >

test/sun/util/locale/provider/Bug8038436.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2014, 2016 Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 25,43 **** * @test * @bug 8038436 8158504 * @summary Test for changes in 8038436 * @modules java.base/sun.util.locale.provider * java.base/sun.util.spi * @compile -XDignore.symbol.file Bug8038436.java * @run main/othervm --limit-modules java.base Bug8038436 security * @run main/othervm -Djava.locale.providers=COMPAT Bug8038436 availlocs */ ! import java.security.*; ! import java.util.*; ! import java.util.stream.*; ! import sun.util.locale.provider.*; public class Bug8038436 { public static void main(String[] args) { switch (args[0]) { --- 25,53 ---- * @test * @bug 8038436 8158504 * @summary Test for changes in 8038436 * @modules java.base/sun.util.locale.provider * java.base/sun.util.spi + * jdk.localedata * @compile -XDignore.symbol.file Bug8038436.java * @run main/othervm --limit-modules java.base Bug8038436 security * @run main/othervm -Djava.locale.providers=COMPAT Bug8038436 availlocs */ ! import java.security.CodeSource; ! import java.security.Permission; ! import java.security.PermissionCollection; ! import java.security.Permissions; ! import java.security.Policy; ! import java.security.ProtectionDomain; ! import java.util.Arrays; ! import java.util.Formatter; ! import java.util.GregorianCalendar; ! import java.util.List; ! import java.util.Locale; ! import java.util.stream.Collectors; ! import sun.util.locale.provider.LocaleProviderAdapter; public class Bug8038436 { public static void main(String[] args) { switch (args[0]) {
< prev index next >