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

FieldSetter static can throw AccessControlExcpetion with security manager enabled

    XMLWordPrintable

Details

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

    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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: