Issue Details (XML | Word | Printable)

Key: TORQUE-103
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Jonathan Purvis
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Torque

TorqueRuntimeException.splitStackTrace has invalid cast.

Created: 08/Oct/07 01:18 AM   Updated: 14/Oct/07 10:25 AM
Return to search
Component/s: Runtime
Affects Version/s: 3.3-RC2
Fix Version/s: 3.3-RC3

Time Tracking:
Not Specified

Resolution Date: 14/Oct/07 10:25 AM


 Description  « Hide
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.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Thomas Fischer added a comment - 14/Oct/07 10:25 AM
Patch applied
Thanks for the patch.