Re: Jython inherit from Java class

2006-02-13 Thread Kent Johnson
Mark Fink wrote: > Hi Kent, > many thanks for your help! In the meantime I received my "Jython > Essentials" book and hope that I have much fewer questions in the near > future. > One last question for this thread. I tried to inherit from a Java class > and override on method. I figured that this a

Re: Jython inherit from Java class

2006-02-13 Thread Mark Fink
Hi Kent, many thanks for your help! In the meantime I received my "Jython Essentials" book and hope that I have much fewer questions in the near future. One last question for this thread. I tried to inherit from a Java class and override on method. I figured that this approach was nonsense because

Re: Jython inherit from Java class

2006-02-11 Thread Kent Johnson
Mark Fink wrote: > Alan, Kent, many thanks this really helped! > But there is still a problem I guess with inheritance. I use the java > testsuit supplied with the original to test the server. If I use the > Java FitServer the testsuite can be completed. I commented everything > out from my class a

Re: Jython inherit from Java class

2006-02-11 Thread Kent Johnson
Mark Fink wrote: > Please enlighten me. This seemed so easy yust inherit from a Java class > overwrite one method - done. At the moment I do not know how to proceed > :-(( It should be easy. > Jython or jythonc? > == > In general is it better to run programms with the jython inter

Re: Jython inherit from Java class

2006-02-11 Thread Kent Johnson
Frank LaFond wrote: > Jython 2.2 Alpha 1 supports Java 1.5 It is also buggy and IIRC has a broken jythonc which is what the OP is trying to use. Kent -- http://mail.python.org/mailman/listinfo/python-list

Re: Jython inherit from Java class

2006-02-11 Thread Mark Fink
Please enlighten me. This seemed so easy yust inherit from a Java class overwrite one method - done. At the moment I do not know how to proceed :-(( Jython or jythonc? == In general is it better to run programms with the jython interpreter or is it better to compile them first? I ha

Re: Jython inherit from Java class

2006-02-10 Thread Frank LaFond
Jython 2.2 Alpha 1 supports Java 1.5 Frank. Kent Johnson wrote: > Mark Fink wrote: > >> I observed something strange when I tried to compile the jython class: >> 'assert' is a keyword, and may not be used as an identifier >> (try -source 1.3 or lower to use 'assert' as an identifier) >> publ

Re: Jython inherit from Java class

2006-02-10 Thread Kent Johnson
Mark Fink wrote: > I observed something strange when I tried to compile the jython class: > 'assert' is a keyword, and may not be used as an identifier > (try -source 1.3 or lower to use 'assert' as an identifier) > public static void assert(PyObject test, PyObject message) { > Looks like some

Re: Jython inherit from Java class

2006-02-10 Thread Mark Fink
I observed something strange when I tried to compile the jython class: D:\AUT_TEST\workspace\JyFIT\fit>jythonc JyFitServer.py processing JyFitServer Required packages: fitnesse.util java.io java.net fitnesse.components* Creating adapters: Creating .java files: JyFitServer module Jy

Re: Jython inherit from Java class

2006-02-10 Thread Mark Fink
Alan, Kent, many thanks this really helped! But there is still a problem I guess with inheritance. I use the java testsuit supplied with the original to test the server. If I use the Java FitServer the testsuite can be completed. I commented everything out from my class and it does not work?? Thats

Re: Jython inherit from Java class

2006-02-08 Thread Kent Johnson
Mark Fink wrote: > I wrote a Jython class that inherits from a Java class and (thats the > plan) overrides one method. Everything should stay the same. > > If I run this nothing happens whereas if I run the Java class it says: > usage: java fit.FitServer [-v] host port socketTicket > -v

Re: Jython inherit from Java class

2006-02-08 Thread Alan Kennedy
[Mark Fink] > I wrote a Jython class that inherits from a Java class and (thats the > plan) overrides one method. Everything should stay the same. > > If I run this nothing happens whereas if I run the Java class it says: > usage: java fit.FitServer [-v] host port socketTicket > -v ver

Jython inherit from Java class

2006-02-07 Thread Mark Fink
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it says: usage: java fit.FitServer [-v] host port socketTicket -v verbose I think this is b