33 import java.util.Collections;
34 import java.util.Arrays;
35 import java.util.ArrayList;
36 import java.util.List;
37 import java.util.StringTokenizer;
38
39 /*
40 * The main benefit of this test is to catch merge errors or other types
41 * of issues where one or more of the packages are accidentally
42 * removed. This is why the packages that are known to be restricted have to
43 * be explicitly listed below.
44 */
45 public class CheckPackageAccess {
46
47 /*
48 * This array should be updated whenever new packages are added to the
49 * package.access property in the java.security file
50 */
51 private static final String[] packages = {
52 "sun.",
53 "com.sun.corba.se.impl.",
54 "com.sun.xml.internal.",
55 "com.sun.imageio.",
56 "com.sun.istack.internal.",
57 "com.sun.jmx.",
58 "com.sun.proxy.",
59 "com.sun.org.apache.bcel.internal.",
60 "com.sun.org.apache.regexp.internal.",
61 "com.sun.org.apache.xerces.internal.",
62 "com.sun.org.apache.xpath.internal.",
63 "com.sun.org.apache.xalan.internal.extensions.",
64 "com.sun.org.apache.xalan.internal.lib.",
65 "com.sun.org.apache.xalan.internal.res.",
66 "com.sun.org.apache.xalan.internal.templates.",
67 "com.sun.org.apache.xalan.internal.utils.",
68 "com.sun.org.apache.xalan.internal.xslt.",
69 "com.sun.org.apache.xalan.internal.xsltc.cmdline.",
70 "com.sun.org.apache.xalan.internal.xsltc.compiler.",
71 "com.sun.org.apache.xalan.internal.xsltc.trax.",
72 "com.sun.org.apache.xalan.internal.xsltc.util.",
73 "com.sun.org.apache.xml.internal.res.",
|
33 import java.util.Collections;
34 import java.util.Arrays;
35 import java.util.ArrayList;
36 import java.util.List;
37 import java.util.StringTokenizer;
38
39 /*
40 * The main benefit of this test is to catch merge errors or other types
41 * of issues where one or more of the packages are accidentally
42 * removed. This is why the packages that are known to be restricted have to
43 * be explicitly listed below.
44 */
45 public class CheckPackageAccess {
46
47 /*
48 * This array should be updated whenever new packages are added to the
49 * package.access property in the java.security file
50 */
51 private static final String[] packages = {
52 "sun.",
53 "com.sun.xml.internal.",
54 "com.sun.imageio.",
55 "com.sun.istack.internal.",
56 "com.sun.jmx.",
57 "com.sun.proxy.",
58 "com.sun.org.apache.bcel.internal.",
59 "com.sun.org.apache.regexp.internal.",
60 "com.sun.org.apache.xerces.internal.",
61 "com.sun.org.apache.xpath.internal.",
62 "com.sun.org.apache.xalan.internal.extensions.",
63 "com.sun.org.apache.xalan.internal.lib.",
64 "com.sun.org.apache.xalan.internal.res.",
65 "com.sun.org.apache.xalan.internal.templates.",
66 "com.sun.org.apache.xalan.internal.utils.",
67 "com.sun.org.apache.xalan.internal.xslt.",
68 "com.sun.org.apache.xalan.internal.xsltc.cmdline.",
69 "com.sun.org.apache.xalan.internal.xsltc.compiler.",
70 "com.sun.org.apache.xalan.internal.xsltc.trax.",
71 "com.sun.org.apache.xalan.internal.xsltc.util.",
72 "com.sun.org.apache.xml.internal.res.",
|