You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fully initialize policy checker before instrumenting (#128703) (#128704)
Entitlement instrumentation works by reflectively calling back into the
entitlements lib to grab the checker. It must be fully in place before
any classes are instrumented. This commit fixes a bug that was
introduced by refactoring which caused the checker to not be set until
after all classes were instrumented. In some situations this could lead
the checker to being null when it is grab (and statically cached) by the
entitlement bridge.
Copy file name to clipboardExpand all lines: libs/entitlement/src/main/java/org/elasticsearch/entitlement/initialization/EntitlementInitialization.java
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,9 @@ public static EntitlementChecker checker() {
68
68
* @param inst the JVM instrumentation class instance
Copy file name to clipboardExpand all lines: test/framework/src/main/java/org/elasticsearch/entitlement/initialization/TestEntitlementInitialization.java
0 commit comments