We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 688c9d3 + 7299827 commit f54bfe3Copy full SHA for f54bfe3
test/jdk/com/sun/jdi/JdbLastErrorTest.java
@@ -54,10 +54,10 @@ private static void testWindows() throws Throwable {
54
System.loadLibrary("Kernel32");
55
SymbolLookup lookup = SymbolLookup.loaderLookup();
56
MethodHandle getLastError = linker.downcallHandle(
57
- lookup.lookup("GetLastError").orElseThrow(),
+ lookup.find("GetLastError").orElseThrow(),
58
FunctionDescriptor.of(ValueLayout.JAVA_INT));
59
MethodHandle setLastError = linker.downcallHandle(
60
- lookup.lookup("SetLastError").orElseThrow(),
+ lookup.find("SetLastError").orElseThrow(),
61
FunctionDescriptor.ofVoid(ValueLayout.JAVA_INT));
62
63
for (int i = 0; i < 10; i++) {
0 commit comments