diff -r 8c9eff693145 -r fe8f95a2d9bc hotspot/src/share/vm/oops/method.hpp --- a/hotspot/src/share/vm/oops/method.hpp Mon Nov 10 19:04:38 2014 +0300 +++ b/hotspot/src/share/vm/oops/method.hpp Tue Nov 11 11:05:41 2014 +0100 @@ -595,6 +595,9 @@ // returns true if the method is an accessor function (setter/getter). bool is_accessor() const; + // returns true if the method does nothing but return a constant of primitive type + bool is_constant_getter() const; + // returns true if the method is an initializer ( or ). bool is_initializer() const;