This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 172523 - waitFinished() for ExecutorTask doesn't always return
Summary: waitFinished() for ExecutorTask doesn't always return
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 153431
  Show dependency tree
 
Reported: 2009-09-17 20:46 UTC by charly4711
Modified: 2009-09-24 12:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
jar archive of an example nb module project (6.81 KB, application/octet-stream)
2009-09-17 20:49 UTC, charly4711
Details

Note You need to log in before you can comment on or make changes to this bug.
Description charly4711 2009-09-17 20:46:14 UTC
trying to run my unit tests on a module freshly ported to 6.7.1 and 6.8m1, I'm running into a funny issue:

I need to run a bunch of ant targets, some of them call <java>.
Running any of them individually works fine.
Running two of the targets calling <java> from a single call to ActionUtils.runTarget() and then doing waitFinished()
never returns.

Will attach an SSCCE in a separate comment
Comment 1 charly4711 2009-09-17 20:49:30 UTC
Created attachment 87884 [details]
jar archive of an example nb module project
Comment 2 charly4711 2009-09-17 20:54:01 UTC
To try the sample, extract the attached jar, open it in NB 6.8m1 (and I think 6.7.1 is the same).
Then, right-click->run the project and wait for the second NB to start. In the second instance from the menu bar select
TEST->TEST EXECUTOR TASK.
Watch the output in the first instance of NB. It should first execute the test target once and log a message "DONE
....". Then it should try to run the test target twice and you should see the second instance get to the "BUILD
SUCCESSFUL" message showing that ant completed, but the first instance will never display the "DONE ...." message.
Comment 3 t_h 2009-09-22 11:25:05 UTC
It seems InputStream thread hangs until next target runs.
Comment 4 Jesse Glick 2009-09-22 20:17:48 UTC
Regression introduced by fix of issue #153431. core-main #a1f3ce3ad76a
Comment 5 Quality Engineering 2009-09-24 12:37:28 UTC
Integrated into 'main-golden', will be available in build *200909230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a1f3ce3ad76a
User: Jesse Glick <jglick@netbeans.org>
Log: #172523: copier threads should be marked daemon so they do not block Ant process termination.