From: Andres Corrada-E. <co...@ci...> - 2001-10-26 01:03:15
|
Hi Robert, Thank you. I didn't know about the jython switch. I'd rather set the switch and avoid having to write wrapper classes. I was beginning to despair that Jython was not up to the task. This is awesome! Andres Corrada-Emmanuel Senior Research Fellow Center for Intelligent Information Retrieval University of Massachusetts, Amherst On Thu, 25 Oct 2001, Robert W. Bill wrote: > > The package statement does not ensure that access occurs from this class. > Creating 'dynamicism' means using indirection. Jython's indirection > means that the attribute request may not originate in the class found > in the generated .java file. > > > My Python class tries to access a package-accesible super attribute but > > fails. If I make that attribute public it succeeds. This is > > unsatisfactory. I'm trying to use someone elses code and I cannot change > > the attribute properties. > > > > Can I still use Jython or do I need to abandon this line of approach and > > resign myself to having to program in Java directly? > > Yes. You can set python.respectJavaAccessibility to false and use Jython. > Even if you do not do so, you do not have to abandon Jython. Instead, > write only a wrapper class in java that makes access > Jython-friendly, then go about the project in Jython. > > -robert > > |