Uploaded image for project: 'Commons Chain'
  1. Commons Chain
  2. CHAIN-11

[Chain] Doesn't Compile under JDK 1.3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1
    • None
    • None
    • Operating System: other
      Platform: Other

    • 35390

    Description

      Chain doesn't compile under JDK 1.3 because the DispatchCommand uses the
      InvocationTargetException.getCause() method introduced in JDK 1.4. This is a
      result of the change to DispatchCommand in Revison 178565:

      http://svn.apache.org/viewcvs.cgi?rev=178565&view=rev

      I suggest changing to use the getTargetException() method.

      Theres also a bug introduced in this revision, since it tests whether the
      IllegalArgumentException is an Exception (which it always will be) rather than
      the "cause" being an Exception (which it might not be):

      if (e instanceof Exception)

      Should be

      if (e.getCause() instanceof Exception)

      Attachments

        Activity

          People

            niallp Niall Pemberton
            niallp Niall Pemberton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: