Skip to content

Commit

Permalink
add ProtectionDomain for dynamicly created class
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Mar 11, 2013
1 parent a4140d2 commit 841f6c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public Class<?> doCompile(String name, String source) throws Throwable {
}
}
}
return cls.toClass(ClassHelper.getCallerClassLoader(getClass()), null);
return cls.toClass(ClassHelper.getCallerClassLoader(getClass()), JavassistCompiler.class.getProtectionDomain());
}

}

0 comments on commit 841f6c2

Please sign in to comment.