Uploaded image for project: 'JBoss Marshalling'
  1. JBoss Marshalling
  2. JBMAR-231

FieldSetter static can throw AccessControlExcpetion with security manager enabled

    Details

      Description

      There is a mistake in the initialization of unsafe:

      static final Unsafe unsafe = getSecurityManager() != null ? GetUnsafeAction.INSTANCE.run() : doPrivileged(GetUnsafeAction.INSTANCE);

      It invokes doPrivileged if SecurityManager is not null, it should be the other way around.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  flavia.rainone Flavia Rainone
                  Reporter:
                  flavia.rainone Flavia Rainone
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: