db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Purvis (JIRA)" <j...@apache.org>
Subject [jira] Created: (TORQUE-103) TorqueRuntimeException.splitStackTrace has invalid cast.
Date Mon, 08 Oct 2007 01:19:50 GMT
TorqueRuntimeException.splitStackTrace has invalid cast.
--------------------------------------------------------

                 Key: TORQUE-103
                 URL: https://issues.apache.org/jira/browse/TORQUE-103
             Project: Torque
          Issue Type: Bug
          Components: Runtime
    Affects Versions: 3.3-RC2
            Reporter: Jonathan Purvis


line 225 of TorqueRuntimeException.java has:
        return (String[]) list.toArray();

it should be:
        return (String[]) list.toArray(new String[list.size()]);

Otherwise the returned array will be of type Object[] and the cast will fail at runtime.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message