hi,
 
our company will be moving to jdk 1.5 soon and i need to get the jython programs working with jdk 1.5.  i recompiled jython.jar file with jdk 1.5 without any problems.  but when i compile some jython modules using jdk 1.5, here is what i get. following these errors is the ant task i use to compile with in case that would help you.
 
thanks,
 
bryan
 
     [java] 1  .\jpywork\com\company\util\app\sre_compile.java:653: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
     [java] (try -source 1.3 or lower to use 'assert' as an identifier)
     [java]             if (frame.getglobal("__debug__").__nonzero__()) Py.assert(frame.getlocal(0).__getattr__("pattern").__getattr__("groups")._le(i$12), s$13);
     [java]                                                                ^
     [java] .\jpywork\com\company\util\app\sre_compile.java:676: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
     [java] (try -source 1.3 or lower to use 'assert' as an identifier)
     [java]             if (frame.getglobal("__debug__").__nonzero__()) Py.assert(frame.getname("_sre").__getattr__("MAGIC")._eq(frame.getname("MAGIC")), s$0);
     [java]                                                                ^
     [java] .\jpywork\com\company\util\app\javaos.java:909: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
     [java] (try -source 1.3 or lower to use 'assert' as an identifier)
     [java]                 if (frame.getglobal("__debug__").__nonzero__()) Py.assert(frame.getlocal(0)._eq(frame.getlocal(4)), frame.getlocal(3)._mod(new PyTuple(new PyObject[] {frame.getlocal(1), frame.getlocal(4), frame.getlocal(0)})));
     [java]                                                                    ^
     [java] .\jpywork\com\company\util\app\javaos.java:928: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
     [java] (try -source 1.3 or lower to use 'assert' as an identifier)
     [java]                 if (frame.getglobal("__debug__").__nonzero__()) Py.assert(frame.getlocal(0).invoke("system", frame.getlocal(5)).__not__(), s$78._mod(new PyTuple(new PyObject[] {frame.getlocal(5), frame.getlocal(2)})));
     [java]                                                                    ^
     [java] .\jpywork\com\company\util\app\javaos.java:930: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
     [java] (try -source 1.3 or lower to use 'assert' as an identifier)
     [java]                 if (frame.getglobal("__debug__").__nonzero__()) Py.assert(frame.getglobal("re").__getattr__("match").__call__(frame.getlocal(4), frame.getlocal(3)), s$79._mod(new PyTuple(new PyObject[] {frame.getlocal(4), frame.getlocal(3)})));
     [java]                                                                    ^
     [java] .\jpywork\com\company\util\app\javaos.java:945: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
     [java] (try -source 1.3 or lower to use 'assert' as an identifier)
     [java]             if (frame.getglobal("__debug__").__nonzero__()) Py.assert(frame.getglobal("environ").__getattr__("_populated").__not__(), s$98);
     [java]                                                                ^
     [java] .\jpywork\com\company\util\app\javaos.java:948: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
     [java] (try -source 1.3 or lower to use 'assert' as an identifier)
     [java]             if (frame.getglobal("__debug__").__nonzero__()) Py.assert(frame.getglobal("environ").__getattr__("_populated"), s$100);
     [java]                                                                ^
     [java] .\jpywork\com\company\util\app\javaos.java:949: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
     [java] (try -source 1.3 or lower to use 'assert' as an identifier)
     [java]             if (frame.getglobal("__debug__").__nonzero__()) Py.assert(frame.getlocal(4).invoke("get", frame.getlocal(3), frame.getglobal("None"))._eq(frame.getlocal(2)), s$101._mod(frame.getlocal(3)));
     [java]                                                                ^
     [java] .\jpywork\com\company\util\app\javaos.java:950: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
     [java] (try -source 1.3 or lower to use 'assert' as an identifier)
     [java]             if (frame.getglobal("__debug__").__nonzero__()) Py.assert(frame.getglobal("environ").invoke("get", frame.getlocal(3), frame.getglobal("None"))._eq(frame.getlocal(2)), s$102._mod(frame.getlocal(3)));
     [java]                                                                ^
     [java] .\jpywork\com\company\util\app\javaos.java:952: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
     [java] (try -source 1.3 or lower to use 'assert' as an identifier)
     [java]             if (frame.getglobal("__debug__").__nonzero__()) Py.assert(frame.getglobal("environ").invoke("has_key", s$104), s$105);
     [java]                                                                ^
     [java] .\jpywork\com\company\util\app\javaos.java:959: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
     [java] (try -source 1.3 or lower to use 'assert' as an identifier)
     [java]             if (frame.getglobal("__debug__").__nonzero__()) Py.assert(frame.getlocal(0).__getattr__("environment").invoke("items").__not__(), s$107)
;
     [java]                                                                ^
     [java] .\jpywork\com\company\util\app\javaos.java:967: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
     [java] (try -source 1.3 or lower to use 'assert' as an identifier)
     [java]             if (frame.getglobal("__debug__").__nonzero__()) Py.assert(frame.getlocal(0).__getattr__("environment").invoke("items").__not__(), s$107)
;
     [java]                                                                ^
     [java] 12 errors
 
 
### ant task
 
    <java classname="org.python.util.jython"
          dir="${build.src}/netsh/com/company/app"
          fork="true">
            <sysproperty key="python.home" value="${build.lib}/jython21"/>
            <classpath>
                <pathelement path="${build.lib}/jython.jar"/>
            </classpath>
            <arg path="${build.lib}/jython21/jythonc/jythonc.py"/>
            <arg line="--compileropts"/>
            <arg value="-nowarn -d ${build.classes}"/>
            <arg line="--package"/>
            <arg value="com.company.util.app"/>
            <arg line="--deep"/>
            <arg value="App.py"/>
    </java>