[seam-commits] Seam SVN: r7548 - trunk/src/main/org/jboss/seam/security.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Mar 12 18:19:26 EDT 2008
Author: shane.bryzak at jboss.com
Date: 2008-03-12 18:19:25 -0400 (Wed, 12 Mar 2008)
New Revision: 7548
Modified:
trunk/src/main/org/jboss/seam/security/Identity.java
Log:
JBSEAM-2230 don't throw exception for unsupported callback
Modified: trunk/src/main/org/jboss/seam/security/Identity.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/Identity.java 2008-03-12 12:15:45 UTC (rev 7547)
+++ trunk/src/main/org/jboss/seam/security/Identity.java 2008-03-12 22:19:25 UTC (rev 7548)
@@ -572,7 +572,7 @@
public void handle(Callback[] callbacks)
throws IOException, UnsupportedCallbackException
{
- for (int i=0; i<callbacks.length; i++)
+ for (int i=0; i < callbacks.length; i++)
{
if (callbacks[i] instanceof NameCallback)
{
@@ -585,10 +585,9 @@
}
else
{
- throw new UnsupportedCallbackException(callbacks[i], "Unsupported callback");
+ log.warn("Unsupported callback " + callbacks[i]);
}
}
-
}
};
}
More information about the seam-commits
mailing list