Le 25/11/14 19:39, Shawn McKinney a écrit :
> 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.

Right ! Haven't seen the interface. The code is defintively correct.

Reply via email to