diff options
author | jfrijters <jfrijters> | 2014-07-04 14:21:46 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2014-07-04 14:21:46 +0400 |
commit | 14b18d1d185d4e5a371a7c1a1d7cbdc6da821272 (patch) | |
tree | 8be0fb6be7bfcdb6a96663f561ecb79573887331 | |
parent | baa72377e131fa1d3a5bce2529e860f0ba40b0f9 (diff) |
Intrinsified lambda anonymous classes should return protection domain from host class.
-rw-r--r-- | runtime/openjdk/java.lang.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/openjdk/java.lang.cs b/runtime/openjdk/java.lang.cs index e001d385..9d277487 100644 --- a/runtime/openjdk/java.lang.cs +++ b/runtime/openjdk/java.lang.cs @@ -351,6 +351,12 @@ static class Java_java_lang_Class { 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; #endif |