зеркало из https://github.com/mono/ikvm-fork.git
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:
Родитель
8e649671fa
Коммит
6f0ff28388
|
@ -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" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче