/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
// This just contains a bunch of methods that call various JDI methods.
// It is called from the sagtest.java jtreg test to get this info for the standard
// JDI and from the sagclient.java test to get this info for the SA JDI.
}
return false;
}
}
public class sagdoit {
super();
}
}
}
public void doAll() {
//System.out.println("NOTE: dumping of class info is disabled in sagdoit.java");
//System.out.println(" just to keep the output small while working on objects");
doClasses(); //fixme jj: uncomment this to see all class info
}
public void doThreadGroups() {
}
// sort; need a comparator
return;
}
}
}
indent(4);
pp("threads:");
indent(4);
indent(-4);
pp("threadGroups:");
indent(4);
indent(-4);
indent(-4);
}
public void doThreads() {
}
return;
}
}
}
indent(4);
//void stop(ObjectReference throwable) throws InvalidTypeException;
//void interrupt();
indent(-4);
indent(4);
try {
}
//List frames(int start, int length) throws IncompatibleThreadStateException;
// unsupported List allMonitors = xx.ownedMonitors();
// unsupported pp("currentContendedMonitor() = " + xx.currentContendedMonitor());
} catch (IncompatibleThreadStateException ee) {
}
indent(-4);
}
try {
} catch (AbsentInformationException ee) {
// we compile with -g so this shouldn't happen
return;
}
indent(4);
}
indent(-4);
}
public void doClasses() {
// Spec says each is a ReferenceType
//System.out.println("class " + (ii + 1) + " is " + myClasses.get(ii));
// Uncomment this to just do a few classes.
//if ( ii > 4) break;
}
}
indent(5);
// inherited from Mirror
// inherited from Type
// ReferenceType fields
try {
} catch (ClassNotFoundException ee) {
}
pp("ReferenceType fields");
pp("ArrayType fields");
}
pp("ClassType fields");
}
pp("InterfaceType fields");
}
}
indent(-5);
}
try {zz =xx.sourceName();} catch(AbsentInformationException ee) { zz = ee;} pp("sourceName() = " + zz);
try {zz =xx.sourceNames("stratum");} catch(AbsentInformationException ee) { zz = ee;} pp("sourceNames() = " + zz);
try {zz =xx.sourcePaths("stratum");} catch(AbsentInformationException ee) { zz = ee;} pp("sourcePaths() = " + zz);
//try {zz =xx.sourceDebugExtension();} catch(AbsentInformationException ee) { zz = ee;} pp("sourceDebugExtension() = " + zz);
//fixme: jj; should sourceDebugExtension throw UnsupportedOperationException?
try {zz =xx.sourceDebugExtension();} catch(Exception ee) { zz = ee;} pp("sourceDebugExtension() = " + zz);
// If xx is an array, this can cause a ClassNotLoadedException on the
// component type. Is that a JDI bug?
}
//if (1 == 1) return;
//pp("getValue(Field field) = " + xx.getValue("field"));
//pp("getValues(List fields) = " + xx.getValues(new List[] = {"fields"}));
//x pp("allLineLocations() = " + xx.allLineLocations());
//x pp("allLineLocations(String stratum, String sourceName) = " + xx.allLineLocations("stratum", "sourceName"));
//x pp("locationsOfLine(int lineNumber) = " + xx.locationsOfLine(89));
//x pp("locationsOfLine(String stratum, String sourceName, int lineNumber) = " + xx.locationsOfLine("stratum", "sourceName", 89));
}
}
// try {
// ReferenceType rr = (ReferenceType)xx;
// pp("ReferenceType fields");
// try {
// ArrayType ff = (ArrayType)xx;
// pp("ArrayType fields");
// } catch(ClassCastException ee) {
// }
// try {
// ClassType ff = (ClassType)xx;
// pp("ClassType fields");
// } catch(ClassCastException ee) {
// }
// try {
// InterfaceType ff = (InterfaceType)xx;
// pp("InterfaceType fields");
// } catch(ClassCastException ee) {
// }
// } catch(ClassCastException ee) {
// }