65 Commits

Author SHA1 Message Date
nboyd%atg.com
3870b22fca Fix spelling in comment.
git-svn-id: svn://10.0.0.236/trunk@253288 18797224-902f-48f8-a5cc-f745e15eee43
2008-07-26 13:49:25 +00:00
nboyd%atg.com
e0123f0945 Fix the last of the warnings!
git-svn-id: svn://10.0.0.236/trunk@252451 18797224-902f-48f8-a5cc-f745e15eee43
2008-06-19 17:30:46 +00:00
nboyd%atg.com
9876f36d0e Fix more warnings, serialVersionUID, generics, clean up examples
git-svn-id: svn://10.0.0.236/trunk@251163 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-04 15:22:28 +00:00
nboyd%atg.com
7d2971c0fb Fix a bunch of warnings, mostly javadoc.
git-svn-id: svn://10.0.0.236/trunk@232925 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-23 14:46:26 +00:00
nboyd%atg.com
12c37370a2 Fix miscellaneous Java compilation warnings.
git-svn-id: svn://10.0.0.236/trunk@232386 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-20 14:16:25 +00:00
nboyd%atg.com
f6310de50e Always need Object[] rather than String[] for Context.newArray().
git-svn-id: svn://10.0.0.236/trunk@230352 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-20 11:59:51 +00:00
nboyd%atg.com
bd6958cc25 Fix a bunch of warnings.
git-svn-id: svn://10.0.0.236/trunk@225019 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-25 17:31:12 +00:00
szegedia%freemail.hu
260f663015 finalizers should be protected
git-svn-id: svn://10.0.0.236/trunk@217097 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-17 15:39:48 +00:00
szegedia%freemail.hu
234bf62c7f Don't invoke System.gc
git-svn-id: svn://10.0.0.236/trunk@217096 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-17 15:39:36 +00:00
gerv%gerv.net
f31a42d169 Bug 236108 - changing licence from NPL/GPL to MPL/GPL to help the Apache people. The bug in question also suggests an eventual switch to MIT; that may come later.
git-svn-id: svn://10.0.0.236/trunk@215092 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-10 15:27:40 +00:00
szegedia%freemail.hu
6deb4c73c7 Fix for #342894: "examples/E4X/e4x_example.js has line endings inconsistent with rest of source tree"
git-svn-id: svn://10.0.0.236/trunk@201870 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-11 12:38:20 +00:00
szegedia%freemail.hu
49e3d24ddf Fix for #342894: "examples/E4X/e4x_example.js has line endings inconsistent with rest of source tree"
git-svn-id: svn://10.0.0.236/trunk@201869 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-11 12:34:25 +00:00
timeless%mozdev.org
f9bdb44b34 Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan


git-svn-id: svn://10.0.0.236/trunk@185269 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 08:16:51 +00:00
igor%mir2.org
64f1db58a2 Changing the example to use the supported syntax, the older syntax did not
work since 1.5R1 release or so.


git-svn-id: svn://10.0.0.236/trunk@179168 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-28 19:49:21 +00:00
igor%mir2.org
4e0bdf0286 1. Replacing IdScriptableObject.wrap_* methods by their ScriptRuntime.wrap* counterparts since the wrap methods are useful not only for subclasses of IdScriptableObject.
2. Reorganizing execIdCall in few classes inherited from IdScriptableObject to shrink code size.


git-svn-id: svn://10.0.0.236/trunk@162092 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 18:02:06 +00:00
igor%mir2.org
a5563f388c Removal of "throws JavaSriptException" declaration:
JavaSriptException now inherits from RhinoException which inherits from RuntimeException and as such it does not necessary to declare it.

Moreover, it is wrong to use it for the documentation purpose since a  script can also throw EcmaError and WrappedException and a proper documentation would require to document those exceptions as well. But since almost all Rhino functions can potentially execute script code it means that wast majority of functions would bear the declarations, not only code overriding or calling explicitly Function.call/construct. And then the throw declarations would bring no information if it always would be "throws RhinoException". Thus it is better not to litter sources with the declarations at all.


git-svn-id: svn://10.0.0.236/trunk@161917 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-08 12:29:59 +00:00
igor%mir2.org
9d27279c06 Resolving bug 255891: new approach to dynamic scoping
git-svn-id: svn://10.0.0.236/trunk@161577 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-01 14:17:00 +00:00
igor%mir2.org
bea731bb62 Using explicit JavaImporter constructor to make namespace for swing and using it later with the "with" statement to get access to Java classes.
In this way the example can be used in an application that does not use ImporterTopLevel.


git-svn-id: svn://10.0.0.236/trunk@160610 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-10 16:11:13 +00:00
igor%mir2.org
1e7ad6ba51 Adding E4X example contributed by John Schneider from AgileDelta, Inc., http://www.agiledelta.com/ .
git-svn-id: svn://10.0.0.236/trunk@160054 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-29 15:55:41 +00:00
igor%mir2.org
9a39b3b949 Switch to using Context.javaToJS instead of Context.toObject
git-svn-id: svn://10.0.0.236/trunk@157503 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-07 10:35:22 +00:00
igor%mir2.org
1befe605c8 Updates to reflect new extension to allow to pass function to Java method expecting interface: now interface with multiple methods are allowed as long as all methods has the same signature
git-svn-id: svn://10.0.0.236/trunk@154223 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-24 15:44:19 +00:00
igor%mir2.org
471769ba50 Adjusting examples not to assume that Context.initStandardObjects(ScriptableObject) returns ScriptableObject since that was changed back to Scriptable for compatibility.
git-svn-id: svn://10.0.0.236/trunk@148831 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-04 14:54:43 +00:00
igor%mir2.org
48d483ff35 GlobalScope is removed as its introduction had to serious consequences with compatibility and usage. Instead a special purpose class ClassCache is introduces to hold various caches. The class binds itself to an arbitrary object by using new SciptableObject.associateValue method so arbitrary ScriptableObject can be used as a scope without performance penalties.
git-svn-id: svn://10.0.0.236/trunk@148689 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-01 15:34:23 +00:00
igor%mir2.org
ccac7e82cb First part of resolving http://bugzilla.mozilla.org/show_bug.cgi?id=223435 :
Allow to pass JS function to Java method accepting interface with single method. The function will be called when interface method will be called.


git-svn-id: svn://10.0.0.236/trunk@148460 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-28 08:37:30 +00:00
igor%mir2.org
0d52480bc1 Updated to remove NotAFunction exception handler which is not generated any more and was deprecated.
git-svn-id: svn://10.0.0.236/trunk@148325 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-23 21:48:45 +00:00
igor%mir2.org
0087decd80 Use newly introduced Context.initStandardObjects(), not initStandardObjects(null) in the examples
git-svn-id: svn://10.0.0.236/trunk@147795 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-09 07:00:40 +00:00
igor%mir2.org
6117f71580 Use non-static functions in Shell
git-svn-id: svn://10.0.0.236/trunk@147794 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-09 07:00:01 +00:00
igor%mir2.org
d43995a795 Cosmetics: removal of end-of-line junk space
git-svn-id: svn://10.0.0.236/trunk@147793 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-09 06:57:12 +00:00
igor%mir2.org
b0787480a4 Self-documenting example
git-svn-id: svn://10.0.0.236/trunk@147406 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-28 19:49:07 +00:00
igor%mir2.org
020637d3cc Cosmetics: removal of junk white-space at line end
git-svn-id: svn://10.0.0.236/trunk@135418 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-17 20:48:35 +00:00
igor%mir2.org
250429589c Examples now uses try {} finally { Context.exit(); } to release Context even in case of errors
git-svn-id: svn://10.0.0.236/trunk@124854 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 17:49:16 +00:00
nboyd%atg.com
4f7b214f80 Add example of the use of a WrapFactory.
git-svn-id: svn://10.0.0.236/trunk@122984 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 14:19:09 +00:00
nboyd%atg.com
df3e942e85 Makefiles no longer supported: use Ant.
git-svn-id: svn://10.0.0.236/trunk@118334 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-06 01:56:50 +00:00
timeless%mac.com
69ae314807 Bug 106386 rid source of misspellings
r=db48x sr=blake a=asa


git-svn-id: svn://10.0.0.236/trunk@116832 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 04:30:17 +00:00
nboyd%atg.com
04382ca085 Fix out-of-date javadoc.
git-svn-id: svn://10.0.0.236/trunk@112720 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:57:52 +00:00
nboyd%atg.com
a0ec3d9d28 Subject:
jsdoc.js - added simple support for methods
   Date:
        Thu, 14 Jun 2001 09:12:26 +0100 (GMT Daylight Time)
   From:
        Simon Massey <simon_massey@hotmail.com>
     To:
        <nboyd@atg.com>






First off let me say thanks a lot for rhino. It is a really excellent piece
of software.

I am writing a large piece of js for making Excel2000 htm interactive on IE
and other browser such as Netscape6. Use a alot of code OO using methods
along the lines of:

  /**
   * Constructor
   */
  function Type(x){
   this.x = x;
  }

  /**
   * Method
   */
  Type.prototype.getX = function(){
   return x;
  }

  var type = new Type('a');
  var a = type.getX();

I have added to jsdoc.js so that finds and documents the method
declarations.

Attached is my modified jsdoc.js and a sample of the html that it generates
for the some of our proprietry :-( "Axel" code.

As an aside have you seen the job that www.blox.com have done on making a
dhtml spreadsheet? Bet they wished they could use exceptions in Netscape4!

Looking forward to the production JSDebugger. The tip version is great. It
does however seem to trash the view that it has of a file when an eval call
is made in that file. Is there a work around or will I have to wait till
the production version?

Thanks Again!

Simon Massey


git-svn-id: svn://10.0.0.236/trunk@97153 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-14 17:38:37 +00:00
nboyd%atg.com
1e0e59ecbf Add new CounterTest example.
git-svn-id: svn://10.0.0.236/trunk@96181 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-01 15:26:45 +00:00
nboyd%atg.com
7a819a25a9 Expand tutorial.
git-svn-id: svn://10.0.0.236/trunk@84956 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-16 15:24:23 +00:00
nboyd%atg.com
60daf49df2 Fix infinite loop in example.
git-svn-id: svn://10.0.0.236/trunk@84861 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-12 16:28:36 +00:00
nboyd%atg.com
5196035164 Add construction of Counter from Java
git-svn-id: svn://10.0.0.236/trunk@83268 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-05 16:42:39 +00:00
nboyd%atg.com
db7217df5b Fix 60184, and add SwingApplication.js example, with change
to shell to prevent early exit.


git-svn-id: svn://10.0.0.236/trunk@82731 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-17 13:05:46 +00:00
nboyd%atg.com
7112818e3c Fix bug 49350
git-svn-id: svn://10.0.0.236/trunk@78738 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 15:12:04 +00:00
nboyd%atg.com
4bdf743ca1 Fix class path
git-svn-id: svn://10.0.0.236/trunk@76777 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-21 15:51:57 +00:00
nboyd%atg.com
6cdb0ab2d5 Fix javadoc error.
git-svn-id: svn://10.0.0.236/trunk@74315 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 14:08:28 +00:00
nboyd%atg.com
6081b3a66b Deprecate FlattenedObject.
git-svn-id: svn://10.0.0.236/trunk@73818 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 14:41:35 +00:00
norris%netscape.com
b4284415c8 Fix bug 33841.
git-svn-id: svn://10.0.0.236/trunk@65725 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 17:30:32 +00:00
norris%netscape.com
f062645ceb generalize on number of threads, add synchronization point so test case behaves as advertised
git-svn-id: svn://10.0.0.236/trunk@62779 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-13 21:45:02 +00:00
norris%netscape.com
4bd64eafb8 Fix command line
git-svn-id: svn://10.0.0.236/trunk@62504 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-09 23:33:06 +00:00
norris%netscape.com
e926d2847d Add html page for the NervousText applet.
git-svn-id: svn://10.0.0.236/trunk@62500 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-09 23:06:54 +00:00
norris%netscape.com
04e62a29b4 Clean up examples to use current jsFunction_ and jsGet_ method forms.
git-svn-id: svn://10.0.0.236/trunk@62145 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-03 19:15:51 +00:00