Torque
  1. Torque
  2. TORQUE-103

TorqueRuntimeException.splitStackTrace has invalid cast.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3-RC2
    • Fix Version/s: 3.3-RC3
    • Component/s: Runtime
    • Labels:
      None

      Description

      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.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Jonathan Purvis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development