FEST

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

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

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