tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject [PROPOSAL] Remove Realm from GenericPrincipal
Date Fri, 17 Jul 2009 00:16:21 GMT
As a result of looking into, I discovered
that the only use made of the Realm attribute of GenericPrincipal is to
control whether or not a debug message is logged in RealmBase.hasRole()

Given that the Realm is the reason that GenericPrincipal is not
Serializable, I'd like to propose the following changes for Tomcat 7.

1. Remove the Realm from GenericPrincipal
2. Make GenericPrincipal Serializable
3. Take advantage of this to simplify the Cluster code

As a by product, this should also address bug 40881 by allowing any
Realm that uses any Serializable Principal to work with clustering.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message