[seam-issues] [JBoss JIRA] Updated: (SEAMSECURITY-77) "inconvertible types found"while setting authenticator class
Marek Smigielski (JIRA)
jira-events at lists.jboss.org
Thu Jun 16 16:51:27 EDT 2011
[ https://issues.jboss.org/browse/SEAMSECURITY-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marek Smigielski updated SEAMSECURITY-77:
-----------------------------------------
Workaround Description:
Use:
identity.setAuthenticatorName("openIdAuthenticator");
instead.
Steps to Reproduce: (was: Use:
identity.setAuthenticatorName("openIdAuthenticator");
instead.)
> "inconvertible types found"while setting authenticator class
> ------------------------------------------------------------
>
> Key: SEAMSECURITY-77
> URL: https://issues.jboss.org/browse/SEAMSECURITY-77
> Project: Seam Security
> Issue Type: Bug
> Affects Versions: 3.0.0.Final
> Reporter: Marek Smigielski
>
> You cannot programatically set class in identity bean.
> This line won't work:
> identity.setAuthenticatorClass(OpenIdAuthenticator.class);
> setAuthenticatorClass(java.lang.Class<org.jboss.seam.security.Authenticator>) in org.jboss.seam.security.Identity cannot be applied to (java.lang.Class<org.jboss.seam.security.external.openid.OpenIdAuthenticator>)
> identity.setAuthenticatorClass((Class<Authenticator>) openIdAuthenticator.getClass());
> inconvertible types
> [ERROR] found : java.lang.Class<capture#60 of ? extends org.jboss.seam.security.external.openid.OpenIdAuthenticator>
> [ERROR] required: java.lang.Class<org.jboss.seam.security.Authenticator>
> This either:
> I think that declaration of setAuthenticatorClass should be changed from:
> void setAuthenticatorClass(Class<Authenticator> authenticatorClass);
> to
> void setAuthenticatorClass(Class<? extends Authenticator> authenticatorClass);
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list