From kato-commits-return-238-apmail-incubator-kato-commits-archive=incubator.apache.org@incubator.apache.org Sun May 24 12:34:42 2009 Return-Path: Delivered-To: apmail-incubator-kato-commits-archive@minotaur.apache.org Received: (qmail 34552 invoked from network); 24 May 2009 12:34:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 May 2009 12:34:39 -0000 Received: (qmail 77701 invoked by uid 500); 24 May 2009 12:34:52 -0000 Delivered-To: apmail-incubator-kato-commits-archive@incubator.apache.org Received: (qmail 77686 invoked by uid 500); 24 May 2009 12:34:52 -0000 Mailing-List: contact kato-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: kato-dev@incubator.apache.org Delivered-To: mailing list kato-commits@incubator.apache.org Received: (qmail 77676 invoked by uid 99); 24 May 2009 12:34:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 May 2009 12:34:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 May 2009 12:34:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 883C52388863; Sun, 24 May 2009 12:34:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: kato-commits@incubator.apache.org From: spoole@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090524123428.883C52388863@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 loadedClassesRecordNO = new LinkedList(); LinkedList threadRecordNO = new LinkedList();