Skip to content

Commit f54bfe3

Browse files
authored
Merge pull request #12 from minborg/fix-lookup-find
Fix call to SymbolLookup::find
2 parents 688c9d3 + 7299827 commit f54bfe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jdk/com/sun/jdi/JdbLastErrorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ private static void testWindows() throws Throwable {
5454
System.loadLibrary("Kernel32");
5555
SymbolLookup lookup = SymbolLookup.loaderLookup();
5656
MethodHandle getLastError = linker.downcallHandle(
57-
lookup.lookup("GetLastError").orElseThrow(),
57+
lookup.find("GetLastError").orElseThrow(),
5858
FunctionDescriptor.of(ValueLayout.JAVA_INT));
5959
MethodHandle setLastError = linker.downcallHandle(
60-
lookup.lookup("SetLastError").orElseThrow(),
60+
lookup.find("SetLastError").orElseThrow(),
6161
FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT));
6262

6363
for (int i = 0; i < 10; i++) {

0 commit comments

Comments
 (0)