Subj : Re: Using ClassCompiler, can I only override public functions with To : netscape.public.mozilla.jseng From : user Date : Tue Feb 22 2005 10:39 am ah. that makes sense now. too bad that there's no special dispensation for the "author" to overload protected members like there is when you're authoring in the actual java language. -denny- Igor Bukanov wrote: > user@domain.invalid wrote: > >> even more, it looks like js can't even *call* a function that's not >> public. For instance, in my derived class, I can't call a protected >> superclass member function. >> >> is this just how it is or can I set some kidn of permissions or am i >> just wrong and missing something stupid? > > > To find out the super class methods Rhino sources just calls > Class.getMethods() which skips all protected method names, see > > http://lxr.mozilla.org/mozilla/source/js/rhino/src/org/mozilla/javascript/JavaAdapter.java#390 > > > Regards, Igor .