Skip to content

Commit

Permalink
fix mismatched types for invokeExact. Have to tell invokeExact what t…
Browse files Browse the repository at this point in the history
…ype we are expecting (#2589)
  • Loading branch information
davecramer committed Aug 15, 2022
1 parent 96f2561 commit abf3bcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pgjdbc/src/main/java/org/postgresql/gss/MakeGSS.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
import java.security.AccessControlContext;
import java.security.PrivilegedAction;
import java.security.PrivilegedExceptionAction;
import java.util.Set;
Expand Down Expand Up @@ -102,7 +103,7 @@ public class MakeGSS {
return null;
}
return (Subject) SUBJECT_GET_SUBJECT.invoke(
ACCESS_CONTROLLER_GET_CONTEXT.invokeExact()
(AccessControlContext) ACCESS_CONTROLLER_GET_CONTEXT.invokeExact()
);
} catch (Throwable e) {
if (e instanceof RuntimeException) {
Expand Down

0 comments on commit abf3bcb

Please sign in to comment.