Bug 56810 - ANT: test target fails
ANT: test target fails
Product: Tomcat 8
Classification: Unclassified
Component: Util
PC All
: P2 normal (vote)
: ----
Assigned To: Tomcat Developers Mailing List
Depends on:
  Show dependency tree
Reported: 2014-08-04 12:50 UTC by Asaf
Modified: 2014-08-04 15:00 UTC (History)
1 user (show)

ANT log showing the problem (1.93 KB, text/plain)
2014-08-04 12:50 UTC, Asaf
patch (1.26 KB, patch)
2014-08-04 12:51 UTC, Asaf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Asaf 2014-08-04 12:50:13 UTC
Created attachment 31870 [details]
ANT log showing the problem

when trying to run the tests using ANT (ant test), the test fails during compilation. See attached ANT log file.

The problem is in the class TesterOpenSSL which uses the method Process.waitFor(int,TimeUnit). This method does not exist in Java 7 (it was introduced in Java 8).
Comment 1 Asaf 2014-08-04 12:51:56 UTC
Created attachment 31871 [details]

a fix for the problem
Comment 2 Mark Thomas 2014-08-04 15:00:01 UTC
Thanks for the report. The chances of this getting stuck are slim so I went for the simpler fix.