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
Repository Revision Date User Message
ASF #584524 Sun Oct 14 10:25:43 UTC 2007 tfischer Corrected invalid cast in TorqueRuntimeException.splitStackTrace.
Fixes TORQUE-103.
Files Changed
MODIFY /db/torque/site/trunk/xdocs/changes.xml
ADD /db/torque/runtime/trunk/src/test/org/apache/torque/TorqueRuntimeExceptionTest.java
MODIFY /db/torque/runtime/trunk/src/java/org/apache/torque/TorqueRuntimeException.java