Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-103

TorqueRuntimeException.splitStackTrace has invalid cast.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: