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

TorqueRuntimeException.splitStackTrace has invalid cast.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3-RC2
    • 3.3-RC3
    • Runtime
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: