<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Please review fix for [1] at [2]. This is a follow up of
    JDK-8247790, the checks added to forbid local static types to access
    type and local variables defined out of theirs scope was not totally
    correct and was issuing an error for code like:<br>
    <br>
    <pre style="background-color:#ffffff;color:#000000;font-family:'DejaVu Sans Mono';font-size:11.3pt;"><span style="color:#000080;font-weight:bold;">import </span>java.security.*;
<span style="color:#000080;font-weight:bold;">class </span>Test {
    <span style="color:#000080;font-weight:bold;">static </span>Test newInstance(Object provider) {
        <span style="color:#000080;font-weight:bold;">return new </span>Test() {
            <span style="color:#000080;font-weight:bold;">private final </span>PrivilegedExceptionAction<KeyStore> action = <span style="color:#000080;font-weight:bold;">new </span>PrivilegedExceptionAction<KeyStore>() {
                <span style="color:#000080;font-weight:bold;">public </span>KeyStore run() <span style="color:#000080;font-weight:bold;">throws </span>Exception {
                    <span style="color:#000080;font-weight:bold;">if </span>(provider == <span style="color:#000080;font-weight:bold;">null</span>) {}  <-------- compiler was issuing an error because of this access
                    <span style="color:#000080;font-weight:bold;">return null</span>;
                }
            };
        };
    }
}</pre>
    Thanks,<br>
    Vicente<br>
    <br>
    <a class="moz-txt-link-freetext" href="https://bugs.openjdk.java.net/browse/JDK-8249829">https://bugs.openjdk.java.net/browse/JDK-8249829</a><br>
    <a class="moz-txt-link-freetext" href="http://cr.openjdk.java.net/~vromero/8249829/webrev.00/">http://cr.openjdk.java.net/~vromero/8249829/webrev.00/</a><br>
  </body>
</html>