mirror of https://github.com/jenkinsci/jenkins.git
[JENKINS-74814] `java.lang.UnsupportedOperationException`: This stack walker does not have `RETAIN_CLASS_REFERENCE` access (#9945)
This commit is contained in:
parent
0bc21b9425
commit
ac63b7f156
|
@ -62,7 +62,7 @@ public final class SetContextClassLoader implements AutoCloseable {
|
||||||
* @since 2.362
|
* @since 2.362
|
||||||
*/
|
*/
|
||||||
public SetContextClassLoader() {
|
public SetContextClassLoader() {
|
||||||
this(StackWalker.getInstance().getCallerClass());
|
this(StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE).getCallerClass());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue