FEST
  1. FEST
  2. FEST-198

Fix ImageAssert.read to compile successfully against Java 1.5

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: FEST-Assert 1.1
    • Fix Version/s: FEST-Assert 1.2
    • Component/s: Assert
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The current sourcecode uses a IOException constructor which is only available in Java 1.6 and later:

      new IOException(concat("Unable to read image from file ", quote(imageFilePath)), e);

      This code won't compile against Java 1.5, which is the Java version we chose as our source and target platform in the parent pom.xml

      Fix this by not catching the IOException. Instead, simply let it fly "as is".

        Activity

        Hide
        Ansgar Konermann added a comment - - edited

        Fixed in SVN revision 332. Needs assignment to one of the upcoming releases.

        Show
        Ansgar Konermann added a comment - - edited Fixed in SVN revision 332. Needs assignment to one of the upcoming releases.

          People

          • Assignee:
            Ansgar Konermann
            Reporter:
            Ansgar Konermann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 15 minutes Original Estimate - 15 minutes
              15m
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 30 minutes
              30m