< prev index next >

src/java.base/share/classes/java/util/concurrent/atomic/AtomicBoolean.java

Print this page
8197531: Miscellaneous changes imported from jsr166 CVS 2018-04
Reviewed-by: martin, psandoz

*** 54,64 **** static { try { MethodHandles.Lookup l = MethodHandles.lookup(); VALUE = l.findVarHandle(AtomicBoolean.class, "value", int.class); } catch (ReflectiveOperationException e) { ! throw new Error(e); } } private volatile int value; --- 54,64 ---- static { try { MethodHandles.Lookup l = MethodHandles.lookup(); VALUE = l.findVarHandle(AtomicBoolean.class, "value", int.class); } catch (ReflectiveOperationException e) { ! throw new ExceptionInInitializerError(e); } } private volatile int value;
< prev index next >