Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 11358 invoked from network); 20 Jun 2009 17:47:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jun 2009 17:47:14 -0000 Received: (qmail 47614 invoked by uid 500); 20 Jun 2009 17:47:25 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 47523 invoked by uid 500); 20 Jun 2009 17:47:25 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 47514 invoked by uid 99); 20 Jun 2009 17:47:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jun 2009 17:47:25 +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; Sat, 20 Jun 2009 17:47:23 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 155A8238889D; Sat, 20 Jun 2009 17:47:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r786869 - /commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java Date: Sat, 20 Jun 2009 17:47:03 -0000 To: commits@commons.apache.org From: mturk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090620174703.155A8238889D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mturk Date: Sat Jun 20 17:47:02 2009 New Revision: 786869 URL: http://svn.apache.org/viewvc?rev=786869&view=rev Log: Make sure we init on success Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java?rev=786869&r1=786868&r2=786869&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java (original) +++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java Sat Jun 20 17:47:02 2009 @@ -52,7 +52,6 @@ { if (inited) return; - inited = true; for (Field f : this.getClass().getFields()) { OffsetOf o = f.getAnnotation(OffsetOf.class); if (o != null) { @@ -116,6 +115,7 @@ } sizeof = align(sizeof, align); } + inited = true; } public static final int align(int size, int boundary)