Description
This code is in org.apache.openjpa.jdbc.sql.AbstractResult.
public long getLong(Object obj)
throws SQLException
public long getLong(Column col, Joins joins)
throws SQLException
protected long getLongInternal(Object obj, Joins joins)
throws SQLException
It seems like it's an obvious bug; using intValue and JavaTypes.INT in getLongInternal should use longValue and JavaTypes.LONG.