8140650: Method::is_accessor should cover getters and setters for all types

Reviewed-by: vlivanov, coleenp, sgehwolf
This commit is contained in:
Aleksey Shipilev 2015-11-11 01:27:36 +03:00
parent 6ed8c23581
commit ac09d8a135
8 changed files with 196 additions and 6 deletions

View file

@ -300,7 +300,10 @@ AbstractInterpreter::MethodKind AbstractInterpreter::method_kind(methodHandle m)
}
// Accessor method?
if (m->is_accessor()) {
if (m->is_getter()) {
// TODO: We should have used ::is_accessor above, but fast accessors in Zero expect only getters.
// See CppInterpreter::accessor_entry in cppInterpreter_zero.cpp. This should be fixed in Zero,
// then the call above updated to ::is_accessor
assert(m->size_of_parameters() == 1, "fast code for accessors assumes parameter size = 1");
return accessor;
}