1472N/A * Copyright (c) 2002, 2004, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1472N/A * or visit www.oracle.com if you need additional information or have any 0N/A // primitive array klasses are loaded by bootstrap loader 0N/A // multidimensional primitive array klasses are loaded by bootstrap loader 0N/A // class loader of any other obj array klass is same as the loader 0N/A // that loaded the bottom InstanceKlass 0N/A // arrays don't have methods 0N/A // arrays don't have methods 0N/A // JLS says arrays have methods of java.lang.Object. But 0N/A // JVMDI-JDI returns zero size list. We do the same here 0N/A * Find the type object, if any, of a component type of this array. 0N/A * The component type does not have to be immediate; e.g. this method 0N/A * can be used to find the component Foo of Foo[][]. 0N/A // It's a primitive type 0N/A // Assignment of primitive arrays requires identical 0N/A // Assignment of object arrays requires availability 0N/A // of widening conversion of component types 0N/A * Return true if an instance of the given reference type 0N/A * can be assigned to a variable of this type 0N/A // One or both component types has not yet been 0N/A // loaded => can't assign 0N/A // Every array type implements java.io.Serializable and 0N/A // java.lang.Cloneable. fixme in JVMDI-JDI, includes only 0N/A // Cloneable but not Serializable. 0N/A // Only valid ClassType assignee is Object 0N/A // arrays are derived from java.lang.Object and 0N/A // B[] is derived from A[] if B is derived from A. 0N/A // But JVMDI-JDI returns zero sized list and we do the 0N/A // same for consistency. 0N/A * For object arrays, the return values for Interface 0N/A * Accessible.isPrivate(), Accessible.isProtected(), 0N/A * etc... are the same as would be returned for the 0N/A * component type. Fetch the modifier bits from the 0N/A * component type and use those. 0N/A * For primitive arrays, the modifiers are always 0N/A * VMModifiers.FINAL | VMModifiers.PUBLIC 0N/A * Save a pointless trip over the wire for these methods 0N/A * which have undefined results for arrays. 0N/A * Defined always to be true for arrays