Yves De Moor created OPENJPA-2679:
-------------------------------------

             Summary: Version field in a mapped super class causes 
java.lang.ArrayIndexOutOfBoundsException
                 Key: OPENJPA-2679
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2679
             Project: OpenJPA
          Issue Type: Bug
          Components: jdbc
    Affects Versions: 1.2.3, 1.3.0
            Reporter: Yves De Moor


Version field in a mapped super class causes 
java.lang.ArrayIndexOutOfBoundsException

StackTrace version 1.2.3
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at 
org.apache.openjpa.jdbc.sql.DBDictionary.appendUpdates(DBDictionary.java:2124)
        at 
org.apache.openjpa.jdbc.sql.DBDictionary.toBulkOperation(DBDictionary.java:2068)
        at 
org.apache.openjpa.jdbc.sql.DBDictionary.toUpdate(DBDictionary.java:1953)

The bug has been fixed in 2.x version, in class 
org.apache.openjpa.jdbc.meta.FieldMapping, in method public Column[]  
getColumns() by rgc : 2 March 2011

The idea is to backport this method from 2.4.0 to 1.x




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

Reply via email to