As pointed out by FxCopy: Runtime.addShutdownHook() indirectly exposes the AppDomain.ProcessExit event, which has a LinkDemand, so we're adding the LinkDemand to addShutdownHook.

This commit is contained in:
jfrijters 2007-03-15 08:01:50 +00:00
Родитель 8e649671fa
Коммит 6f0ff28388
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -1506,6 +1506,14 @@
</method>
</implements>
</class>
<class name="java.lang.Runtime">
<method name="addShutdownHook" sig="(Ljava.lang.Thread;)V">
<attribute type="System.Security.Permissions.SecurityPermissionAttribute" sig="(Lcli.System.Security.Permissions.SecurityAction;)V">
<parameter>LinkDemand</parameter>
<property name="ControlAppDomain" sig="Z">true</property>
</attribute>
</method>
</class>
</assembly>
<exceptionMappings>
<exception src="System.NullReferenceException" dst="java.lang.NullPointerException" />