harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r929858 - /harmony/enhanced/java/branches/java6/jdktools/modules/jpda/src/main/native/jdwp/common/agent/commands/ObjectReference.cpp
Date Thu, 01 Apr 2010 06:32:09 GMT
Author: hindessm
Date: Thu Apr  1 06:32:09 2010
New Revision: 929858

URL: http://svn.apache.org/viewvc?rev=929858&view=rev
Log:
Put back missed exception.  We really need to review this code.  There are
quite a few cases list this since the exception use has been replaced with
C return codes.

Modified:
    harmony/enhanced/java/branches/java6/jdktools/modules/jpda/src/main/native/jdwp/common/agent/commands/ObjectReference.cpp

Modified: harmony/enhanced/java/branches/java6/jdktools/modules/jpda/src/main/native/jdwp/common/agent/commands/ObjectReference.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/jdktools/modules/jpda/src/main/native/jdwp/common/agent/commands/ObjectReference.cpp?rev=929858&r1=929857&r2=929858&view=diff
==============================================================================
--- harmony/enhanced/java/branches/java6/jdktools/modules/jpda/src/main/native/jdwp/common/agent/commands/ObjectReference.cpp
(original)
+++ harmony/enhanced/java/branches/java6/jdktools/modules/jpda/src/main/native/jdwp/common/agent/commands/ObjectReference.cpp
Thu Apr  1 06:32:09 2010
@@ -83,8 +83,10 @@ ObjectReference::ReferenceTypeHandler::E
 int
 ObjectReference::GetValuesHandler::Execute(JNIEnv *jni) 
 {
+    jdwpError jdwpErr;
     jobject jvmObject = m_cmdParser->command.ReadObjectID(jni);
     // Can be: InternalErrorException, OutOfMemoryException, JDWP_ERROR_INVALID_OBJECT
+    JDWP_CHECK_ERROR_CODE(jdwpErr);
 
     jclass jvmClass = jni->GetObjectClass(jvmObject); 
     jint fieldsNumber = m_cmdParser->command.ReadInt();



Mime
View raw message