Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7131655

Atomic*FieldUpdater security permissions too strict

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 7
    • core-libs
    • None

      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.

            Unassigned Unassigned
            ootenko Oleksandr Otenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: