Non-scriptable interfaces and methods are required

Vladimir Korenev <[email protected]>
Newsgroups gmane.comp.mozilla.devel.java
Message-ID <pOCdnQKQ2qF0rMbYnZ2dnUVZ_sednZ2d__470.550839281891$1163604783$gmane$org@mozilla.org>
There are some non-scriptable methods and interfaces that are needed for
proper embedding. For instance the nsIJSContextStack interface is
required to correctly implement modal event loop. However this interface
is not marked as [scriptable] and generator skips it.

As a workaround we made a patch for GenerateJavaInterfaces.cpp that
allowed to generate all non-scriptable methods and interfaces. However
in the last builds the Java interface generator seems to have been
changed, so our approach doesn't work any longer.

I examined files in the mozilla/extensions/java/xpcom/tools/xpidl
directory that seems to contain a new generator. But I cannot see how to
turn on non-scriptable elements generation. Could anyone give me a hint?

BTW, I noticed that there are some exceptions. For instance the
nsIAppShell interface is not marked as [scriptable], but the Java stub
is generated for it. For the old generator this name was hardcoded, but
I cannot find it in the new one.

--
Vladimir
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.