-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
7
-
None
-
x86
-
linux_oracle_5.4
The use of Atomic*FieldUpdater.newUpdater is restricted by security policy. This creates a problem when using java.util.concurrent in applets. It should be possible to create updaters for fields accessible from the scope of the caller, without a security policy change.
For example, a static class initializer should be able to create field updaters for any fields in the same class, because the same fields could be accessed or modified by any methods in the same class anyway.
A reproducer is a trivial call to AtomicLongFieldUpdater.newUpdater in the static initializer for an existing private field of the class. Class loading fails, when used within applet.
For example, a static class initializer should be able to create field updaters for any fields in the same class, because the same fields could be accessed or modified by any methods in the same class anyway.
A reproducer is a trivial call to AtomicLongFieldUpdater.newUpdater in the static initializer for an existing private field of the class. Class loading fails, when used within applet.
- duplicates
-
JDK-7103570 AtomicIntegerFieldUpdater does not work when SecurityManager is installed
-
- Closed
-