incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r778130 - /incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/HProfView.java
Date Sun, 24 May 2009 12:34:28 GMT
Author: spoole
Date: Sun May 24 12:34:28 2009
New Revision: 778130

URL: http://svn.apache.org/viewvc?rev=778130&view=rev
Log:
fixed problem with not opening hprof file before accessing records

Modified:
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/HProfView.java

Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/HProfView.java
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/HProfView.java?rev=778130&r1=778129&r2=778130&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/HProfView.java
(original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.reader/src/main/java/org/apache/kato/hprof/HProfView.java
Sun May 24 12:34:28 2009
@@ -76,6 +76,11 @@
 
 	public void open(IViewMonitor monitor) {
 
+		try {
+		file.open();
+		} catch(IOException ioe) {
+			throw new IllegalArgumentException(ioe);
+		}
 		int r = 0;
 		LinkedList<IJavaClass> loadedClassesRecordNO = new LinkedList<IJavaClass>();
 		LinkedList<IJavaThread> threadRecordNO = new LinkedList<IJavaThread>();



Mime
View raw message