Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 27620200BD9 for ; Fri, 9 Dec 2016 13:57:43 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 260E3160B1D; Fri, 9 Dec 2016 12:57:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6F3B9160B1C for ; Fri, 9 Dec 2016 13:57:42 +0100 (CET) Received: (qmail 28370 invoked by uid 500); 9 Dec 2016 12:57:41 -0000 Mailing-List: contact commits-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list commits@karaf.apache.org Received: (qmail 28361 invoked by uid 99); 9 Dec 2016 12:57:41 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2016 12:57:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 74E88E040F; Fri, 9 Dec 2016 12:57:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: jbonofre@apache.org To: commits@karaf.apache.org Message-Id: <215fd8bd98d9492593cc3de4c7da68de@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: karaf git commit: [KARAF-4487] Doesn't use lamba to be Java7 compliant Date: Fri, 9 Dec 2016 12:57:41 +0000 (UTC) archived-at: Fri, 09 Dec 2016 12:57:43 -0000 Repository: karaf Updated Branches: refs/heads/karaf-4.0.x 76ff9b014 -> b0f66443b [KARAF-4487] Doesn't use lamba to be Java7 compliant Project: http://git-wip-us.apache.org/repos/asf/karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/b0f66443 Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/b0f66443 Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/b0f66443 Branch: refs/heads/karaf-4.0.x Commit: b0f66443bb0c27f08d2d6923d326cd9bbff06f47 Parents: 76ff9b0 Author: Jean-Baptiste Onofré Authored: Fri Dec 9 13:57:18 2016 +0100 Committer: Jean-Baptiste Onofré Committed: Fri Dec 9 13:57:18 2016 +0100 ---------------------------------------------------------------------- .../apache/karaf/jaas/modules/ldap/GSSAPILdapLoginModule.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf/blob/b0f66443/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/GSSAPILdapLoginModule.java ---------------------------------------------------------------------- diff --git a/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/GSSAPILdapLoginModule.java b/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/GSSAPILdapLoginModule.java index ba6ed5b..04701f2 100644 --- a/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/GSSAPILdapLoginModule.java +++ b/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/GSSAPILdapLoginModule.java @@ -61,7 +61,12 @@ public class GSSAPILdapLoginModule extends AbstractKarafLoginModule { context.login(); try { - return Subject.doAs(context.getSubject(), (PrivilegedExceptionAction) () -> doLogin()); + return Subject.doAs(context.getSubject(), new PrivilegedExceptionAction() { + @Override + public Boolean run() throws Exception { + return doLogin(); + } + }); } catch (PrivilegedActionException pExcp) { logger.error("error with delegated authentication", pExcp); throw new LoginException(pExcp.getMessage());