Mercurial > hg > truffle
comparison src/share/vm/runtime/reflection.cpp @ 11198:1e6d5dec4a4e
Merge.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 05 Aug 2013 13:20:06 +0200 |
parents | c1bd7b5bdc70 |
children | b2e698d2276c |
comparison
equal
deleted
inserted
replaced
11197:3479ab380552 | 11198:1e6d5dec4a4e |
---|---|
456 // Verify that current_class can access new_class. If the classloader_only | 456 // Verify that current_class can access new_class. If the classloader_only |
457 // flag is set, we automatically allow any accesses in which current_class | 457 // flag is set, we automatically allow any accesses in which current_class |
458 // doesn't have a classloader. | 458 // doesn't have a classloader. |
459 if ((current_class == NULL) || | 459 if ((current_class == NULL) || |
460 (current_class == new_class) || | 460 (current_class == new_class) || |
461 (InstanceKlass::cast(new_class)->is_public()) || | 461 (new_class->is_public()) || |
462 is_same_class_package(current_class, new_class)) { | 462 is_same_class_package(current_class, new_class)) { |
463 return true; | 463 return true; |
464 } | 464 } |
465 // New (1.4) reflection implementation. Allow all accesses from | 465 // New (1.4) reflection implementation. Allow all accesses from |
466 // sun/reflect/MagicAccessorImpl subclasses to succeed trivially. | 466 // sun/reflect/MagicAccessorImpl subclasses to succeed trivially. |