Leo User wrote:
> Ive tried to create a jython class that subclass object and Observer:
> class a( object, Observer ):
> and it wont let me do it. It gives me a:
> TypeError: can't mix new-style and java classes
> one of the best things about jython is the ability to subclass java
> classes. I have code that needs to subclass object as well as java
> so this is a major monkey wrench into my work. I aim to keep
> jyleo consistent with leo. If this is a bug, I guess Im notifying you
> of it. If its by design, than I must petition a redesign of this.
there are lot of other things that need to be finished and polished,
before tackling this. It is a major design task to enable this, I had no
time for that when I finalized the new-style branch design OTOH the
design doesn't prevent to enable this later, but first of all
PyJavaClass/PyJavaInstance need a careful review and other aspects of
new-style support need to be completed. I don't expect to have any
significant bandwidth to help someone with this before October.
Personally, I think this feature can wait until Jython 2.3.
Delegation should be a sufficient workaround until then. Old-style
classes and java classes can still be mixed.
> p.s. glad that the new jython is out, this is a very exciting time. It
> has big ramifications for jyleo. :)
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around