Author: bdaw
Date: 2007-07-09 13:58:47 -0400 (Mon, 09 Jul 2007)
New Revision: 7694
Modified:
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/db/HibernateMembershipModuleImpl.java
Log:
JBPORTAL-1559 - HibernateMembershipModuleImpl assignUsers method : wrong error message
Modified:
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/db/HibernateMembershipModuleImpl.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/db/HibernateMembershipModuleImpl.java 2007-07-09
17:04:35 UTC (rev 7693)
+++
branches/JBoss_Portal_Branch_2_6/identity/src/main/org/jboss/portal/identity/db/HibernateMembershipModuleImpl.java 2007-07-09
17:58:47 UTC (rev 7694)
@@ -110,7 +110,7 @@
{
if (!(role instanceof HibernateRoleImpl))
{
- throw new IllegalArgumentException("User is not a HibernateRoleImpl
user");
+ throw new IllegalArgumentException("Role is not a HibernateRoleImpl
user");
}
// We return an immutable set to avoid modifications
@@ -131,7 +131,7 @@
//throw new UnsupportedOperationException("Not yet implemented");
if (!(role instanceof HibernateRoleImpl))
{
- throw new IllegalArgumentException("User is not a HibernateRoleImpl
user");
+ throw new IllegalArgumentException("Role is not a HibernateRoleImpl
user");
}
for (Iterator i = users.iterator(); i.hasNext();)
@@ -144,7 +144,7 @@
}
else
{
- throw new IllegalArgumentException("Only HibernateUserImpl roles can be
accepted");
+ throw new IllegalArgumentException("Only HibernateUserImpl users can be
accepted");
}
}
Show replies by date