[9] RFR (XXS): 8035186: j2se_jdk/jdk/test/java/lang/invoke/lambda/LogGeneratedClassesTest.java - assertion error
Paul Sandoz
paul.sandoz at oracle.com
Tue May 27 15:07:32 UTC 2014
On May 27, 2014, at 3:53 PM, Vladimir Ivanov <vladimir.x.ivanov at oracle.com> wrote:
> Paul,
>
> What you suggest is much cleaner. Thanks!
>
> Updated version:
> http://cr.openjdk.java.net/~vlivanov/8035186/webrev.01/
>
Don't you need to trap the exception? e.g.:
try {
Path test = Paths.get("readOnly/test");
Files.createFile(test);
// Running with privileged permissions; cannot test; clean up and return
} catch (AccessDeniedException ade) {
// Continue with the test
}
Paul.
More information about the core-libs-dev
mailing list