Strange test failure when referencing a class in a deprivileged module

Alan Bateman Alan.Bateman at oracle.com
Thu Jul 7 08:37:49 UTC 2016


On 07/07/2016 09:27, Wang Weijun wrote:

> Like this?
>
> https://gist.github.com/wangweij/6992aaf9617b9e2f242ddf9e391ea5f6
>
> The horizontal line is printed on line 706 of the gist.
>
I assume the suggestion was to reference SQLPermission before setting 
the security manager. As regards module loading then we can re-wording 
this specific case but fundamentally then anything in the 
checkPermission implementation that triggers a permission check is going 
to lead to a recursive call to checkPermission.

-Alan



More information about the security-dev mailing list