Use try with resources for impersonation

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      ACL.impersonate uses pre-java 7 patterns and either ends up with requiring a finally or requiring additional classloading.

      Much more efficient if we can do something like

      try (ACLContext _ = ACL.as(auth)) {
        // do some stuff as auth
      }
      

            Assignee:
            Stephen Connolly
            Reporter:
            Stephen Connolly
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: