Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 99197 invoked from network); 27 Sep 2007 10:36:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Sep 2007 10:36:10 -0000 Received: (qmail 91994 invoked by uid 500); 27 Sep 2007 10:36:00 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 91970 invoked by uid 500); 27 Sep 2007 10:36:00 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 91961 invoked by uid 99); 27 Sep 2007 10:36:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 03:36:00 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [147.91.1.120] (HELO afrodita.rcub.bg.ac.yu) (147.91.1.120) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 10:38:20 +0000 Received: from [147.91.4.66] (ognjen-pc.rcub.bg.ac.yu [147.91.4.66]) by afrodita.rcub.bg.ac.yu (Postfix) with ESMTP id 9A7C0160E2B for ; Thu, 27 Sep 2007 12:35:16 +0200 (CEST) Message-ID: <46FB8764.6050306@etf.bg.ac.yu> Date: Thu, 27 Sep 2007 12:35:16 +0200 From: Ognjen Blagojevic User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: dev@openjpa.apache.org Subject: Re: Inconsistent getReference + setSomeText depending on -javaagent References: <46F8FC11.8020905@etf.bg.ac.yu> In-Reply-To: <46F8FC11.8020905@etf.bg.ac.yu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-RCUB-MailScanner-Information: Please contact the RCUB if you have problem with mail X-RCUB-MailScanner: Found to be clean X-Virus-Checked: Checked by ClamAV on apache.org Should I open JIRA issue on this one? Regards, Ognjen Ognjen Blagojevic wrote: > Hi all, > > I think I found an inconsistent behavior in OpenJPA 1.0.0 when using it > in JavaSE: > 1. with javaagent option > 2. without javaagent option > > The following code: > > em = emf.createEntityManager(); > em.getTransaction().begin(); > MyEntity e = em.getReference(MyEntity.class, 3); > x.setSomeText("Something"); > em.getTransaction().commit(); > em.close(); > System.out.println(x.getSomeText()); > > prints "Something" in case 1, and old value of field SomeText in case 2. > > Regards, > Ognjen >