What is the hash of a null-type attribute value?

Rod Widdowson rdw at steadingsoftware.com
Fri Nov 8 05:38:23 EST 2019


> No, I don't think so. Enum.toString() and Enum.name() return the same
> name string (in our case NULL_VALUE or ZERO_LENGTH_VALUE) unless
> toString() is overridden. It's ObjectOutputStream.writeObject() which
> ends up calling the private writeEnum() which prefixes the name with
> the class name.

That works for me.  I'll make an appropriate change today.  Of course the real answer (which I should have bitten off when we
refactored the IdPAttributeValue) is to move that function into the attributeValue, that way we would never have to have this
conversation again (you'll understand that my real worry is the separation between the two implementations and that a change over in
attribute-api could unwittingly break this code).

But it's too late to do that now and I wouldn't imagine that there will be much movement in adding new attribute value types (I
checked the OIDC plugin doesn't have one).

Thanks Tom

	/Rod



More information about the dev mailing list