incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r889273 - /incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JObject.java
Date Thu, 10 Dec 2009 14:22:26 GMT
Author: spoole
Date: Thu Dec 10 14:22:26 2009
New Revision: 889273

URL: http://svn.apache.org/viewvc?rev=889273&view=rev
Log:
oops - getArraySize in JObject throws wrong sort of error

Modified:
    incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JObject.java

Modified: incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JObject.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JObject.java?rev=889273&r1=889272&r2=889273&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JObject.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JObject.java
Thu Dec 10 14:22:26 2009
@@ -22,6 +22,7 @@
 import java.util.concurrent.CancellationException;
 import java.util.logging.Level;
 
+import javax.tools.diagnostics.image.CorruptData;
 import javax.tools.diagnostics.image.CorruptDataException;
 import javax.tools.diagnostics.image.DataUnavailable;
 import javax.tools.diagnostics.image.ImagePointer;
@@ -32,6 +33,7 @@
 import javax.tools.diagnostics.runtime.java.JavaObject;
 import javax.tools.diagnostics.runtime.java.JavaReference;
 
+import org.apache.kato.jvmti.process.CorruptDataImpl;
 import org.apache.kato.jvmti.reader.CLogger;
 
 /**
@@ -359,7 +361,7 @@
 	@Override
 	public int getArraySize() throws CorruptDataException {
 		if(isArray==false) throw new IllegalArgumentException("object is not an array");
-		if(objArray==null) throw new CancellationException("underlying array object is null");
+		if(objArray==null) throw CorruptDataImpl.corruptDataException("underlying array object
is null");
 		return objArray.length;
 	}
 



Mime
View raw message