Examples of TaggedObject


Examples of org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject

                JDWPConstants.EventKind.FIELD_ACCESS,
                parsedEvents[0].getEventKind(),
                JDWPConstants.EventKind.getName(JDWPConstants.EventKind.FIELD_ACCESS),
                JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind()));
               
        TaggedObject accessedField =((ParsedEvent.Event_FIELD_ACCESS)parsedEvents[0]).getObject();

        // assert that exception class is the expected one
        long typeID = getObjectReferenceType(accessedField.objectID);
        String returnedExceptionSignature = getClassSignature(typeID);
        assertString("Invalid class signature,",
View Full Code Here

Examples of org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject

                .println("==> CHECK: PASSED: returned owned monitors have the same counts as expected");
        logWriter.println("==> Owned monitors: " + owned);

        for (int i = 0; i < owned; i++) {
            // Attain monitor object ID
            TaggedObject monitorObject = stackDepthReply
                    .getNextValueAsTaggedObject();
           
            // Attain monitor stack depth
            int returnedDepthInfo = stackDepthReply.getNextValueAsInt();
            assertEquals(thisCommandName
View Full Code Here

Examples of org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject

        Value returnValue = reply.getNextValueAsValue();
        assertNotNull("Returned value is null", returnValue);
        logWriter.println(" ClassType.InvokeMethod: returnValue=" + returnValue);

        TaggedObject exception = reply.getNextValueAsTaggedObject();
        assertNotNull("ClassType::InvokeMethod returned null exception",
                exception);
        assertEquals("ClassType::InvokeMethod returned invalid exception objectID,",
                0, exception.objectID);
        assertEquals("ClassType::InvokeMethod returned invalid exception.tag",
View Full Code Here

Examples of org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject

        packet.setNextValueAsInt(0);
        logWriter.println(" Send ClassType.NewInstance (without Exception)");
        reply = debuggeeWrapper.vmMirror.performCommand(packet);
        checkReplyPacket(reply, "ClassType::NewInstance command");

        TaggedObject newObject = reply.getNextValueAsTaggedObject();
        logWriter.println(" ClassType.NewInstance: newObject.tag="
                + newObject.tag + "; newObject.objectID=" + newObject.objectID);
        TaggedObject exception = reply.getNextValueAsTaggedObject();
        logWriter.println(" ClassType.NewInstance: exception.tag="
                + exception.tag + "; exception.objectID=" + exception.objectID);

        assertNotNull("newObject is null", newObject);
        assertTrue("newObject.objectID is 0", newObject.objectID != 0);
View Full Code Here

Examples of org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject

        packet.setNextValueAsThreadID(testedThreadID);
        logWriter.println("send \"CurrentContendedMonitor\" command");
        ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
        checkReplyPacket(reply, "ThreadReference::CurrentContendedMonitor command");
       
        TaggedObject tobj = reply.getNextValueAsTaggedObject();
       
        logWriter.println("\ttagged-object tag: "
                + JDWPConstants.Tag.getName(tobj.tag) + "(" + tobj.tag + ") "
                + "ID: " + tobj.objectID);
       
View Full Code Here

Examples of org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject

            packet.setNextValueAsReferenceTypeID(typeArrayID);
            packet.setNextValueAsInt(10);
            reply = debuggeeWrapper.vmMirror.performCommand(packet);
            checkReplyPacket(reply, "ArrayType::NewInstance command");
           
            TaggedObject newArray = reply.getNextValueAsTaggedObject();
            assertAllDataRead(reply);
            assertNotNull("ArrayType::NewInstance returned null newArray", newArray);

            logWriter.println("ArrayType.NewInstance: newArray.tag="
                + newArray.tag + " newArray.objectID=" + newArray.objectID);
View Full Code Here

Examples of org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject

        assertNotNull("Returned value is null", returnValue);
        assertEquals("Invalid returned value,", 234, returnValue.getIntValue());
        logWriter.println(" ClassType.InvokeMethod: returnValue.getIntValue()="
                + returnValue.getIntValue());

        TaggedObject exception = reply.getNextValueAsTaggedObject();
        assertNotNull("Returned exception is null", exception);
        assertTrue("Invalid exception object ID:<" + exception.objectID + ">", exception.objectID == 0);
        assertEquals("Invalid exception tag,", JDWPConstants.Tag.OBJECT_TAG, exception.tag
                , JDWPConstants.Tag.getName(JDWPConstants.Tag.OBJECT_TAG)
                , JDWPConstants.Tag.getName(exception.tag));
View Full Code Here

Examples of org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject

            if (returnValue != null) {
                logWriter.println(" ClassType.InvokeMethod: returnValue.getIntValue()="
                        + returnValue.getIntValue());
            }

            TaggedObject exception = reply.getNextValueAsTaggedObject();
            if (exception != null) {
                logWriter.println(" ClassType.InvokeMethod: exception.tag="
                        + exception.tag + " exception.objectID=" + exception.objectID);
                if ( exception.objectID != 0 ) {
                    String exceptionSignature = getObjectSignature(exception.objectID);
View Full Code Here

Examples of org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject

            if (returnValue != null) {
                logWriter.println(" ClassType.InvokeMethod: returnValue.getIntValue()="
                        + returnValue.getIntValue());
            }

            TaggedObject exception = reply.getNextValueAsTaggedObject();
            if (exception != null) {
                logWriter.println(" ClassType.InvokeMethod: exception.tag="
                        + exception.tag + " exception.objectID=" + exception.objectID);
                if ( exception.objectID != 0 ) {
                    String exceptionSignature = getObjectSignature(exception.objectID);
View Full Code Here

Examples of org.apache.harmony.jpda.tests.framework.jdwp.TaggedObject

        packet.setNextValueAsInt(0);
        logWriter.println("\nSend ClassType.NewInstance");
        ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
        checkReplyPacket(reply, "ClassType::NewInstance command");

        TaggedObject newObject = reply.getNextValueAsTaggedObject();
        logWriter.println(" ClassType.NewInstance: newObject.tag="
                + newObject.tag + " newObject.objectID=" + newObject.objectID);

        TaggedObject exception = reply.getNextValueAsTaggedObject();
        logWriter.println(" ClassType.NewInstance: exception.tag="
                + exception.tag + " exception.objectID=" + exception.objectID);

        assertTrue("newObject must be != null", newObject != null);
        assertTrue("newObject.objectID must be != 0", newObject.objectID != 0);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.