8017571: JSR292: JVM crashing on assert "cast to instanceKlass" while producing MethodHandle for array methods with MethodHandle.findVirtual

Reviewed-by: kvn
This commit is contained in:
Christian Thalinger 2013-07-02 20:27:00 -07:00
parent 386e37ba15
commit 90c790728d
2 changed files with 7 additions and 2 deletions

View file

@ -458,7 +458,7 @@ bool Reflection::verify_class_access(Klass* current_class, Klass* new_class, boo
// doesn't have a classloader.
if ((current_class == NULL) ||
(current_class == new_class) ||
(InstanceKlass::cast(new_class)->is_public()) ||
(new_class->is_public()) ||
is_same_class_package(current_class, new_class)) {
return true;
}