Hi
Im actively using zxDateTime in my application but it
seems to only work with jython 2.1. I tried compiling
the source code with jython2.2a1.jar but it gives me
the following errors.
Im want to use jython 2.2 because it allows for direct
inheritance from sequence types like list etc which
comes in very handy. Can I please request you to help
me in getting this working with jython 2.2a1?
compile:
[javac] Compiling 5 source files to
C:\tools\zxDateTime\build\zxDateTime-${version}
[javac]
C:\tools\zxDateTime\src\java\com\ziclix\python\datetime\PyDateTime.java:198:
__int__() in com.ziclix.python.datetime.PyDateTime
cannot override __int__() in org.python.core.PyObject;
attempting to use incompatible return type
[javac] found : org.python.core.PyInteger
[javac] required: org.python.core.PyObject
[javac] public PyInteger __int__() {
[javac] ^
[javac]
C:\tools\zxDateTime\src\java\com\ziclix\python\datetime\PyDateTime.java:214:
cannot resolve symbol
[javac] symbol : variable __class__
[javac] location: class org.python.core.PyObject
[javac] + other.__class__.__name__ + ") to DateTime");
[javac] ^
[javac]
C:\tools\zxDateTime\src\java\com\ziclix\python\datetime\PyDateTimeDelta.java:123:
cannot resolve symbol
[javac] symbol : variable __class__
[javac] location: class org.python.core.PyObject
[javac] + other.__class__.__name__ + ") to
DateTimeDelta");
[javac] ^
[javac]
C:\tools\zxDateTime\src\java\com\ziclix\python\datetime\PyDateTimeDelta.java:210:
__int__() in com.ziclix.python.datetime.PyDateTimeDelta
cannot override __int__() in org.python.core.PyObject;
attempting to use incompatible return type
[javac] found : org.python.core.PyInteger
[javac] required: org.python.core.PyObject
[javac] public PyInteger __int__() {
[javac] ^
[javac]
C:\tools\zxDateTime\src\java\com\ziclix\python\datetime\zxDateTime.java:215:
cannot resolve symbol
[javac] symbol : method getValue ()
[javac] location: class org.python.core.PyObject
[javac] return (value == Py.None) ? 0 :
value.__int__().getValue();
[javac] ^
[javac] 5 errors
BUILD FAILED: C:\tools\zxDateTime\build.xml:62: Compile
failed; see the compiler error output for details.
Thanks
Ruchir
Logged In: YES
user_id=850021
Forgot to add my login id
ruchirt