openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ognjen Blagojevic <ogn...@etf.bg.ac.yu>
Subject Inconsistent getReference + setSomeText depending on -javaagent
Date Tue, 25 Sep 2007 12:16:17 GMT
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

Mime
View raw message