openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim McConnell (JIRA)" <>
Subject [jira] Commented: (OPENJPA-1319) EntityManagerImpl
Date Mon, 21 Sep 2009 16:39:15 GMT


Tim McConnell commented on OPENJPA-1319:

Hi Mike, these problems can be easily reproduced in the Eclipse debugger without adding any
diagnostics to the OpenJPA code, which is how I initially uncovered the problem. When you
set a breakpoint and interrogate an instance of one of these classes, Eclipse will invoke
the toString() method for that class on your behalf, which will in turn invoke the hashcode()
method which may cause a NPE based on the state of the object when it is interrogated. At
least for me I find this behavior to be extremely distracting especially when I'm trying to
find and fix other problems. 

I'm only adding diagnostic info code for the sake of efficiency to quickly uncover all these
problems since it emulates what will happen in Eclipse (i.e., toString() invoking hashcode()),
and is much faster for me. If you'd prefer actual testcases I can provide them as well, but
it will take me much longer to reproduce and fix them. Thanks

> EntityManagerImpl
> -----------------
>                 Key: OPENJPA-1319
>                 URL:
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 1.0.3, 1.1.0, 1.2.1, 1.3.0, 2.0.0-M2
>            Reporter: Tim McConnell
>            Assignee: Donald Woods
>             Fix For: 1.3.0, 2.0.0-M3
>         Attachments: OPENJPA-1319.patch

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message