Thanks for your advice. For my purposes (writing an EJB test client) I
think I'll just leave the respectJavaAccessibility to false even though this
may not be the preferred technique.
In the future I'll try to keep the setting to true by using this technique.
Can I find any documentation at SourceForge pertaining to Jython's handling
of private and protected members?
From: Robert W. Bill
Cc: Garcia, Michael
Sent: 1/8/01 6:53 PM
Subject: Re: [Jython-dev] Re: Problem calling protected method
> You are very much on the right track.
> This is an FAQ:
> If you want to leave respectJavaAccessibility = true, could you
> from java.util.Calendar and expose the functionality that way? It may
> require adding a public method that simply does
> return self.x()
Or use the lazy way, avoid the abstract class, and inherit from
>>>from java.util import GregorianCalendar
... def ms(self):
... return self.getTimeInMillis()
>>>t = test()
If you still have respectJavaAccessibility = true, you can confirm
protected status with:
>>>g = GregorianCalendar()
Traceback (innermost last):
File "<console>", line 1, in ?
(I actually sent this earlier, but received an service unavailable
I apologize if I'm repeating myself...again :)
Get latest updates about Open Source Projects, Conferences and News.