Skip to content

Commit 3c35f4c

Browse files
lmagyar89rwinch
authored andcommitted
SecurityContextCallableProcessingInterceptor thread visibility fix
Within class SecurityContextCallableProcessingInterceptor field securityContext should volatile. Fixes gh-6143
1 parent ba8a337 commit 3c35f4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/main/java/org/springframework/security/web/context/request/async/SecurityContextCallableProcessingInterceptor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@
4141
*/
4242
public final class SecurityContextCallableProcessingInterceptor extends
4343
CallableProcessingInterceptorAdapter {
44-
private SecurityContext securityContext;
44+
private volatile SecurityContext securityContext;
4545

4646
/**
4747
* Create a new {@link SecurityContextCallableProcessingInterceptor} that uses the

0 commit comments

Comments
 (0)