Reason for non-const of instanceKlass::method_with_idnum(int idnum)

Sebastian Sickelmann sebastian.sickelmann at gmx.de
Thu Nov 17 02:26:12 PST 2011


Hello,

is there a reason why the method instanceKlass::method_with_idnum(int 
idnum) does not have a const qualifier?

The methods
     - instanceKlass::methods()
     - methodOop::idnum()
     - objectArrayOop::obj_at(int)

that are used inside of method_with_idnum are all const and i don't see 
a change to manipulate the internal state of instanceKlass unintantional 
through making method_with_idnum constant.

Kind regards
Sebastian


More information about the hotspot-dev mailing list