src/share/vm/classfile/verifier.cpp

changeset 7594
ecdf1e03db40
parent 7476
c2844108a708
child 7643
695017a614d5
equal deleted inserted replaced
7590:0a5d68482373 7594:ecdf1e03db40
1 /* 1 /*
2 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
2486 // current class, and is in a different runtime package, and the method is 2486 // current class, and is in a different runtime package, and the method is
2487 // protected, then the objectref must be the current class or a subclass 2487 // protected, then the objectref must be the current class or a subclass
2488 // of the current class. 2488 // of the current class.
2489 VerificationType objectref_type = new_class_type; 2489 VerificationType objectref_type = new_class_type;
2490 if (name_in_supers(ref_class_type.name(), current_class())) { 2490 if (name_in_supers(ref_class_type.name(), current_class())) {
2491 Klass* ref_klass = load_class( 2491 Klass* ref_klass = load_class(ref_class_type.name(), CHECK);
2492 ref_class_type.name(), CHECK_VERIFY(this));
2493 Method* m = InstanceKlass::cast(ref_klass)->uncached_lookup_method( 2492 Method* m = InstanceKlass::cast(ref_klass)->uncached_lookup_method(
2494 vmSymbols::object_initializer_name(), 2493 vmSymbols::object_initializer_name(),
2495 cp->signature_ref_at(bcs->get_index_u2()), Klass::normal); 2494 cp->signature_ref_at(bcs->get_index_u2()), Klass::normal);
2496 // Do nothing if method is not found. Let resolution detect the error. 2495 // Do nothing if method is not found. Let resolution detect the error.
2497 if (m != NULL) { 2496 if (m != NULL) {

mercurial