Hi Cameron,

Cameron McCormack <[email protected]> wrote on 02/04/2009 05:33:37 PM:

> One question: the ?class org.w3c.dom.Window? line is commented out
> because it ?conflicts with our Window class?.  How does it conflict?

   If you uncommment it Rhino says:
org.mozilla.javascript.EvaluatorException: 
        Cannot import "Window" since a property by that name is already 
defined.
 
   Which isn't strictly correct since we bind 'window' (little 'w').

> (Also I might return iterators to the classes/packages lists wrapped
> with Collections.unmodifiableList so that calling code can?t remove
> items.  That, or add removeClass()/removePackage() methods, if we want
> to allow removals.)

   So I did both the above.  I was also going to add a 'getImportInfo()'
method to the bridge.UserAgent class (that defaults to getting the
default importInfo).  That way developers can support different sets 
of imports for different documents.

Reply via email to