[Ikvm-commit] ikvm/runtime/openjdk java.lang.cs,1.17,1.18
Brought to you by:
jfrijters
|
From: Jeroen F. <jfr...@us...> - 2014-07-04 10:21:48
|
Update of /cvsroot/ikvm/ikvm/runtime/openjdk In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9248 Modified Files: java.lang.cs Log Message: Intrinsified lambda anonymous classes should return protection domain from host class. Index: java.lang.cs =================================================================== RCS file: /cvsroot/ikvm/ikvm/runtime/openjdk/java.lang.cs,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** java.lang.cs 23 Jun 2014 15:09:43 -0000 1.17 --- java.lang.cs 4 Jul 2014 10:21:46 -0000 1.18 *************** *** 352,355 **** --- 352,361 ---- pd = acl.GetProtectionDomain(); } + else if (wrapper is AnonymousTypeWrapper) + { + // dynamically compiled intrinsified lamdba anonymous types end up here and should get their + // protection domain from the host class + pd = ClassLoaderWrapper.GetWrapperFromType(wrapper.TypeAsTBD.DeclaringType).ClassObject.pd; + } } return pd; |