Skip to content

Commit

Permalink
Fix reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Dec 28, 2021
1 parent 3b4e86a commit a4496c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ object FlinkEngineUtils extends Logging {
}

def getSessionContext(localExecutor: LocalExecutor, sessionId: String): SessionContext = {
val method = classOf[LocalExecutor].getMethod("getSessionContext", classOf[String])
val method = classOf[LocalExecutor].getDeclaredMethod("getSessionContext", classOf[String])
method.setAccessible(true)
method.invoke(localExecutor, sessionId).asInstanceOf[SessionContext]
}
Expand Down

0 comments on commit a4496c3

Please sign in to comment.