GH-1193: Fix Late Binding

LateBinding fields must be volatile for the test to be sure
to get the value (they should be volatile anyway).
This commit is contained in:
Gary Russell
2018-01-24 15:32:30 -05:00
parent d0c7684ad6
commit b26a9819ee

View File

@@ -330,9 +330,9 @@ public class BindingService {
private static class LateBinding<T> implements Binding<T> {
private Binding<T> delegate;
private volatile Binding<T> delegate;
private boolean unbound;
private volatile boolean unbound;
LateBinding() {
super();