db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fischer (JIRA)" <j...@apache.org>
Subject [jira] Closed: (TORQUE-103) TorqueRuntimeException.splitStackTrace has invalid cast.
Date Sun, 14 Oct 2007 10:26:50 GMT

     [ 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


Mime
View raw message