[seam-issues] [JBoss JIRA] Resolved: (SEAMSECURITY-77) "inconvertible types found"while setting authenticator class
Shane Bryzak (JIRA)
jira-events at lists.jboss.org
Tue Aug 9 23:02:24 EDT 2011
[ https://issues.jboss.org/browse/SEAMSECURITY-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shane Bryzak resolved SEAMSECURITY-77.
--------------------------------------
Assignee: Shane Bryzak
Resolution: Done
Pretty sure I've fixed this already.
> "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
> Assignee: Shane Bryzak
>
> 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