Is there any reason getObject and setObject were not made final in Model
class? the reason why i am asking is that there might be the case when
people misuse this; for example (and i have seen this at my current

        Model xModel = new Model(new Long(1)) {

            public Object getObject() {
                // return super.getObject(); <-- not calling this, instead i
return null
                return null;

        // some lines afterwards ... i need this model ... i use it
(expecting to get back object i set)
        // instead i get null. Original intent was to set object passed in
and get the same thing ...

Here i get null as the result.

Any suggestions?

Vyas, Anirudh

Reply via email to