--- old/src/share/vm/oops/method.hpp 2014-11-05 11:50:16.164334246 +0100 +++ new/src/share/vm/oops/method.hpp 2014-11-05 11:50:15.964334240 +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;