karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject karaf git commit: [KARAF-4487] Doesn't use lamba to be Java7 compliant
Date Fri, 09 Dec 2016 12:57:41 GMT
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é <jbonofre@apache.org>
Authored: Fri Dec 9 13:57:18 2016 +0100
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
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<Boolean>)
() -> doLogin());
+            return Subject.doAs(context.getSubject(), new PrivilegedExceptionAction<Boolean>()
{
+                @Override
+                public Boolean run() throws Exception {
+                    return doLogin();
+                }
+            });
         } catch (PrivilegedActionException pExcp) {
             logger.error("error with delegated authentication", pExcp);
             throw new LoginException(pExcp.getMessage());


Mime
View raw message