That's definitely a bug, along with #1602. Thanks for bringing it to our attention! Obviously we want Jython to be a robust platform for concurrent Python.

Fixed in r7049

- Jim

On Mon, Apr 26, 2010 at 3:14 AM, Anselm Kruis <> wrote:

during the investigation of I had a look at

    protected Object getJavaProxy() {
        if (javaProxy == null) {
        return javaProxy;

The current implementation is obviously not thread safe, but I'm not sure, if
this is a real problem. The only problematic case is javaProxy == null and
proxyInit() creating a new javaProxy. I do not yet understand the post jython
2.1 internals well enough, to decide if this case is possible at all.


 Dipl. Phys. Anselm Kruis                       science + computing ag
 Senior Solutions Engineer                      Ingolstädter Str. 22
 email             80807 München, Germany
 phone +49 89 356386 874              
 fax   +49 89 356386 737

Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier,
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196

Jython-dev mailing list