You create a debug field with a prefix string and then check both debug != null
and Debug.isOn("policy") and then use System.out.println to print the message.
Something must be useless.
--Max
> On Nov 16, 2016, at 3:31 AM, Bradford Wetmore <[email protected]>
> wrote:
>
> Simple codereview:
>
> http://cr.openjdk.java.net/~wetmore/8169335/webrev.00
>
> The "crypto.policy" Security property is normally defined/configured in the
> java.security file at build time. (e.g. "limited" or "unlimited") Rather
> than currently failing catastrophically if this value doesn't exist, there
> should be a sensible default if it is undeclared for whatever reason. We
> will use a sane fallback value of "limited".
>
> If the distribution has also removed the "limited" policy directory then the
> VM will still fail to initialize, but we have at least made an effort to
> recover.
>
> Thanks,
>
> Brad
>