Bug 56810 - ANT: test target fails
Summary: ANT: test target fails
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Util (show other bugs)
Version: 8.0.x-trunk
Hardware: PC All
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-04 12:50 UTC by Asaf
Modified: 2014-08-04 15:00 UTC (History)
1 user (show)



Attachments
ANT log showing the problem (1.93 KB, text/plain)
2014-08-04 12:50 UTC, Asaf
Details
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]
patch

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.