Hi
I would imagine the introspector looks at the signature, and if it doesn't return void, it isn't a proper setter. That said, 1) BeanInfo might convince it to use a different signature and 2) a lot of tools ignore the javabeans spec, don't bother using java.beans.Introspector, and just look for "getFoo/setFoo" methods directly and in that case probably don't care about anything but the name.
By default, if you don't provide any custom bean info, XMLEncoder ignores setters not returning void, Renanse made a small test to check that, you're right, thanks.