mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8207027: Lookup.accessClass fails for an array type in the same package when assertions are enabled
Reviewed-by: redestad, mchung
This commit is contained in:
parent
8a9b0134a8
commit
d808684592
3 changed files with 18 additions and 5 deletions
|
@ -333,7 +333,6 @@ public class VerifyAccess {
|
|||
* @return whether they are in the same package
|
||||
*/
|
||||
public static boolean isSamePackage(Class<?> class1, Class<?> class2) {
|
||||
assert(!class1.isArray() && !class2.isArray());
|
||||
if (class1 == class2)
|
||||
return true;
|
||||
if (class1.getClassLoader() != class2.getClassLoader())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue