Test from jdk/test
com/sun/tracing/BasicWithSecurityMgr.java
fails with modular image with java.security.AccessControlException
Tested with jigsaw/m2 build:
java version "1.9.0-ea"
Java(TM) SE Runtime Environment (build 1.9.0-ea-jigsaw-nightly-h1424-20141002-b34)
Java HotSpot(TM) Client VM (build 1.9.0-ea-jigsaw-nightly-h1424-20141002-b34, mixed mode)
----------System.err:(18/1142)----------
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.tracing")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:457)
at java.security.AccessController.checkPermission(AccessController.java:894)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:541)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1479)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:328)
at java.lang.ClassLoader.loadClass(ClassLoader.java:359)
at BasicWithSecurityMgr.main(BasicWithSecurityMgr.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:759)
at java.lang.Thread.run(Thread.java:745)