On 11/25/2014 12:35 PM, Emmanuel Lécharny wrote:
> 
> The pb is thatsession.getRoles() returns a List<UserRole>, and later
> down we do : Constraint constraint = (Constraint) roleItems.next();
> 
> We are very likely to get a classCastException here.
> 
> Cn you confirm that ?

Good question.  Constraint is an interface that UserRole implements:

public class UserRole extends FortEntity implements Serializable, Constraint

So the code is ok.

Reply via email to