tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ales Seifert <>
Subject JNDIRealm change proposal
Date Mon, 22 Jul 2002 22:33:06 GMT
I'm sorry if i'm posting it to the wrong list,

I found small problem in JNDIRealm and I suggest small change.

in method     protected List getRoles(DirContext context,
                              String username, String dn)

is line

		String role = (String) attr.get();

which is throwing ClassCastException, bacause not every attribute can
be converted to String.

So my suggestion is to use this way:

		String role = attr.get().toString();

which should never thrown ClassCastException bacause every objects are
subclass of the Object class.

Can somebody make this change into source for next release?



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

View raw message