From: Andres Corrada-E. <co...@ci...> - 2001-10-25 18:35:12
|
On Thu, 25 Oct 2001, Kevin Butler wrote: > [CC's removed] > > Andres, > > You need to explicitly declare the 'outputTags' attribute as public: > > public String outputTags; > > Your existing declaration: > > > String outputTags; > > leaves it 'package-protected' ("friendly"), and subclasses could normally use it just fine, but because Jython attempts to access the attribute from its own package, the field is not visible. > > kb > Okay. I got that working. But this brings me back to my original problem: I have a Python class that subclasses a Java class in a package. How do I tell Python that it can access that package's attributes? When I compile the Python class with jythonc I use the --package option and can see that the .java file created does have the correct package statement but I still cannot see the super's attributes. Isn't that problematic? Andres Corrada-Emmanuel Senior Research Fellow Center for Intelligent Information Retrieval University of Massachusetts, Amherst |