openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Curtis (JIRA)" <>
Subject [jira] Created: (OPENJPA-1704) PCEnhancer incorrectly generates writes readExternal
Date Mon, 21 Jun 2010 15:27:23 GMT
PCEnhancer incorrectly generates writes readExternal 

                 Key: OPENJPA-1704
             Project: OpenJPA
          Issue Type: Bug
          Components: kernel
    Affects Versions: 2.0.0, 1.2.2
            Reporter: Rick Curtis
            Assignee: Rick Curtis

OPENJPA-1400 introduced a bug that can be encountered when reading a streamed object under
the following circumstances:
- Using a serializable DetachedStateManager  (<property name="openjpa.DetachState" value="fetch-groups(DetachedStateField=true)"/>)

- The Entity needs to have a version field AND either:
  - If no inheritance, a 'proxyable' (ie: java.sql.Date, java.util.List) field with a name
that is lexicographically after the version field.
  - If using inheritance, a 'proxyable' (ie: java.sql.Date, java.util.List) field in a child

The bug could manifest itself in a number of ways. Below is the one I was able to reproduce.
	at org.apache.openjpa.persistence.inheritance.serializable.A.pcProvideField(
	at org.apache.openjpa.kernel.DetachedStateManager.proxyDetachedDeserialized(
	at org.apache.openjpa.persistence.inheritance.serializable.A.readExternal(
	at org.apache.openjpa.persistence.inheritance.serializable.TestSerialization.serializeObject(
	at org.apache.openjpa.persistence.inheritance.serializable.TestSerialization.testRoundTrip(

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

View raw message