reflection - Java private method hiding public accessors -
i have class this: import java.util.list; import java.util.string; import javax.xml.bind.annotation.xmltype; @xmltype public class foo { private list<foo> compound; private string bar; // private method used internally know // if compound instance private boolean iscompound() { return compound != null && compound.size() != 0; } // public setter compound instance var public void setcompound(list<foo> compound) { this.compound = compound; } // public getter compound instance var public list<foo> getcompound() { return compound; } public void setbar(string bar) { this.bar = bar; } public string getbar() { return bar; } } in normal use, class behaves expect. methods getcompound , setcompound , set compound list. however, i'm using class object that's passed in web service built using jax-ws. when jax-ws compiler sees class, ignores setco...