[ 
https://issues.apache.org/jira/browse/OPENJPA-287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Dick closed OPENJPA-287.
--------------------------------


> Generated methods on superclasses are not visible to subclasses
> ---------------------------------------------------------------
>
>                 Key: OPENJPA-287
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-287
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 0.9.7
>            Reporter: Michael Dick
>            Assignee: Michael Dick
>            Priority: Minor
>             Fix For: 1.0.0
>
>
> The pcgetField() and pcsetField() methods are created as Private instead of 
> Protected. 
> This becomes a problem if you use Property access in an entity hierarchy and 
> use a DetachStateField. In this scenario the PCEnhancer will generate 
> writeExternal and readExternal methods on the Entity classes. Those methods 
> expect to be able to call pcgetField() and pcsetField() respectively. A child 
> entity won't have access to those methods and will throw an exception when it 
> is serialized, or deserialized. 
> To resolve the problem I've modified the PCEnhancer so that the generated 
> methods are protected (fix forthcoming). 

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

Reply via email to