Skip to content

Commit

Permalink
[JENKINS-74814] java.lang.UnsupportedOperationException: This stack…
Browse files Browse the repository at this point in the history
… walker does not have `RETAIN_CLASS_REFERENCE` access
  • Loading branch information
basil committed Nov 5, 2024
1 parent b0e47a7 commit da73ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/jenkins/util/SetContextClassLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public final class SetContextClassLoader implements AutoCloseable {
* @since 2.362
*/
public SetContextClassLoader() {
this(StackWalker.getInstance().getCallerClass());
this(StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE).getCallerClass());

Check warning on line 65 in core/src/main/java/jenkins/util/SetContextClassLoader.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 65 is not covered by tests
}

/**
Expand Down

0 comments on commit da73ca0

Please sign in to comment.