[ 
https://issues.apache.org/jira/browse/OPENJPA-2287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14498685#comment-14498685
 ] 

ASF subversion and git services commented on OPENJPA-2287:
----------------------------------------------------------

Commit 1674148 from [~struberg] in branch 'openjpa/trunk'
[ https://svn.apache.org/r1674148 ]

OPENJPA-2287 do not clear object fields for fetchObjectField

* Other objects do not get cleared neither.
* The code dates from JDO times and I've asked a few people and no one had an 
explanation for it
* It introduces nullpointer exceptions in cases where we have to navigate over 
the field a few times. E.g. in complex scenarios.

> OpenJPA makes fields null
> -------------------------
>
>                 Key: OPENJPA-2287
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2287
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 2.2.0
>            Reporter: Maciej Laskowski
>            Assignee: Mark Struberg
>            Priority: Critical
>             Fix For: 2.4.0
>
>
> When there are two objects in OneToMany relation and when One sets Many and 
> vice versa the filed Many.one became null. It seems to be related with code 
> added in this issue https://issues.apache.org/jira/browse/OPENJPA-2006. To 
> reproduce: https://github.com/dogenkigen/OpenJPA-bug



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to