ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41603] - external jython classes are not thread-safe
Date Tue, 13 Feb 2007 23:30:58 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41603>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41603


jkf@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From jkf@apache.org  2007-02-13 15:30 -------
First of all, why would the ant development team be responsible for the thread
safety of external jython classes?

When running your example i get the following output (reproducible)

Buildfile: build2.xml

main2:

testtarget:

testtarget:

testtarget:

testtarget:

testtarget:
Beginning thread test...
test
Ending thread test.


Beginning thread test...
test
test
Ending thread test.


Beginning thread test...
test
test
test
Ending thread test.


Beginning thread test...
test
test
test
test
Ending thread test.


Beginning thread test...
test
test
test
test
test
Ending thread test.



BUILD SUCCESSFUL
Total time: 5 seconds

Which seems ok from the provided scripts, when comparing to the following scripts:
test = threadtester()
test.list.append("test")
test = threadtester()
test.list.append("test")
test = threadtester()
test.list.append("test")
test = threadtester()
test.list.append("test")
test = threadtester()
test.list.append("test")
for i in test.list:
  project.log(i)

which also prints the line "test" 5 times

when creating test = threadtester([]) test is only printed once each time, so
this really seems (to the innocent bystander at least) to be the normal
behaviour for the language, and not dependent on threading or not.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message