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

                expectedTag,
                tag,
                JDWPConstants.Tag.getName(expectedTag),
                JDWPConstants.Tag.getName(tag));

        TaggedObject modifiedField =
            ((ParsedEvent.Event_FIELD_MODIFICATION)parsedEvents[0]).getObject();

        // assert that exception class is the expected one
        long typeID = getObjectReferenceType(modifiedField.objectID);
        String returnedExceptionSignature = getClassSignature(typeID);
View Full Code Here

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

        assertEquals("Invalid event kind,",
                JDWPConstants.EventKind.EXCEPTION,
                parsedEvents[0].getEventKind(),
                JDWPConstants.EventKind.getName(JDWPConstants.EventKind.EXCEPTION),
                JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind()));
        TaggedObject returnedException =((ParsedEvent.Event_EXCEPTION)parsedEvents[0]).getException();
       
        // assert that exception ObjectID is not null
        logWriter.println(">> testExceptionEvent: returnedException.objectID = " + returnedException.objectID);
        assertTrue("Returned exception object is null.", returnedException.objectID != 0);
       
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.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

        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.setNextValueAsLong(frameIDs[i].getFrameID());
           
            ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
            long knownMethodsThisObject = 0;
            if (reply.getErrorCode() == JDWPConstants.Error.NONE) {
                TaggedObject thisObject = reply.getNextValueAsTaggedObject();
                logWriter.println("==> thisObject:");
                logWriter.println("==> tag=" + thisObject.tag + "("
                        + JDWPConstants.Tag.getName(thisObject.tag) + ")");
                logWriter.println("==> id=" + thisObject.objectID);
                if (thisObject.objectID != 0) {
View Full Code Here

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

                JDWPConstants.EventKind.FIELD_MODIFICATION,
                parsedEvents[0].getEventKind(),
                JDWPConstants.EventKind.getName(JDWPConstants.EventKind.FIELD_MODIFICATION),
                JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind()));

        TaggedObject modifiedField =((ParsedEvent.Event_FIELD_MODIFICATION)parsedEvents[0]).getObject();

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

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

                expectedTag,
                tag,
                JDWPConstants.Tag.getName(expectedTag),
                JDWPConstants.Tag.getName(tag));

        TaggedObject modifiedField =
            ((ParsedEvent.Event_FIELD_MODIFICATION)parsedEvents[0]).getObject();

        // assert that exception class is the expected one
        long typeID = getObjectReferenceType(modifiedField.objectID);
        String returnedExceptionSignature = getClassSignature(typeID);
View Full Code Here

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

        assertEquals("Invalid event kind,",
                JDWPConstants.EventKind.EXCEPTION,
                parsedEvents[0].getEventKind(),
                JDWPConstants.EventKind.getName(JDWPConstants.EventKind.EXCEPTION),
                JDWPConstants.EventKind.getName(parsedEvents[0].getEventKind()));
        TaggedObject returnedException =((ParsedEvent.Event_EXCEPTION)parsedEvents[0]).getException();
       
        // assert that exception ObjectID is not null
        logWriter.println(">> testExceptionEvent: returnedException.objectID = " + returnedException.objectID);
        assertTrue("Returned exception object is null.", returnedException.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.