You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Ognjen Blagojevic <og...@etf.bg.ac.yu> on 2007/09/25 14:16:17 UTC
Inconsistent getReference + setSomeText depending on -javaagent
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
Re: Inconsistent getReference + setSomeText depending on -javaagent
Posted by Ognjen Blagojevic <og...@etf.bg.ac.yu>.
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
>