equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2017, 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. |
372 // Find the element klass, if this is an array. |
372 // Find the element klass, if this is an array. |
373 resolved_klass = ObjArrayKlass::cast(resolved_klass)->bottom_klass(); |
373 resolved_klass = ObjArrayKlass::cast(resolved_klass)->bottom_klass(); |
374 } |
374 } |
375 if (resolved_klass->is_instance_klass()) { |
375 if (resolved_klass->is_instance_klass()) { |
376 return (Reflection::verify_class_access(accessing_klass->get_Klass(), |
376 return (Reflection::verify_class_access(accessing_klass->get_Klass(), |
377 resolved_klass, |
377 InstanceKlass::cast(resolved_klass), |
378 true) == Reflection::ACCESS_OK); |
378 true) == Reflection::ACCESS_OK); |
379 } |
379 } |
380 return true; |
380 return true; |
381 } |
381 } |
382 |
382 |