[ https://issues.apache.org/jira/browse/OPENJPA-2923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maxim Solodovnik reassigned OPENJPA-2923: ----------------------------------------- Assignee: Maxim Solodovnik > PCEnhancer creates deprecated call to new Long(long) > ---------------------------------------------------- > > Key: OPENJPA-2923 > URL: https://issues.apache.org/jira/browse/OPENJPA-2923 > Project: OpenJPA > Issue Type: Bug > Components: Enhance > Affects Versions: 4.0.0 > Reporter: Maxim Solodovnik > Assignee: Maxim Solodovnik > Priority: Minor > Fix For: 4.0.1 > > > PCEnhancer creates deprecated call to new Long(long) while generating > {{pcCopyKeyFieldsFromObjectId}} methods > {code} > public void pcCopyKeyFieldsFromObjectId(FieldConsumer var1, Object var2) { > super.pcCopyKeyFieldsFromObjectId(var1, var2); > LongId var3 = (LongId)var2; > var1.storeObjectField(8 + pcInheritedFieldCount, new > Long(var3.getId())); > } > public void pcCopyKeyFieldsFromObjectId(Object var1) { > super.pcCopyKeyFieldsFromObjectId(var1); > LongId var2 = (LongId)var1; > this.id = new Long(var2.getId()); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)