On Fri, 11 Feb 2022 20:32:46 GMT, Tim Prinzing <[email protected]> wrote:
> JDK-8281003 - MethodHandles::lookup throws NPE if caller is null
test/jdk/java/lang/invoke/MethodHandles/exeNullCallerMethodHandlesLookup/NullCallerMethodHandlesLookupTest.java
line 2:
> 1: /*
> 2: * Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights
> reserved.
As this is a new file then I assume it should be 2022 only.
test/jdk/java/lang/invoke/MethodHandles/exeNullCallerMethodHandlesLookup/NullCallerMethodHandlesLookupTest.java
line 48:
> 46: public class NullCallerMethodHandlesLookupTest {
> 47: public static void main(String[] args) throws IOException {
> 48: Path launcher = Paths.get(System.getProperty("test.nativepath"),
> "NullCallerMethodHandlesLookupTest");
Path.of might be nicer here but doesn't matter.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7447