You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by "Thomas Fischer (JIRA)" <ji...@apache.org> on 2007/10/14 12:26:50 UTC

[jira] Closed: (TORQUE-103) TorqueRuntimeException.splitStackTrace has invalid cast.

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

Thomas Fischer closed TORQUE-103.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 3.3-RC3

Patch applied
Thanks for the patch.

> 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
>             Fix For: 3.3-RC3
>
>
> 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