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

FieldSetter static can throw AccessControlExcpetion with security manager enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 2.0.9.Final
    • 2.0.8.Final
    • Marshalling API
    • None

      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.

              flaviarnn Flavia Rainone
              flaviarnn Flavia Rainone
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: