27 Commits

Author SHA1 Message Date
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
igor%mir2.org
9ab9df5239 RefCallable is new member of public API
git-svn-id: svn://10.0.0.236/trunk@177288 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-07 10:05:47 +00:00
igor%mir2.org
eb43725bf9 I added DebuggableScript to javadoc list and fixed javadoc warnings about its documentation comments.
git-svn-id: svn://10.0.0.236/trunk@165711 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-24 10:38:40 +00:00
igor%mir2.org
a05650d12d Added GeneratedClassLoader
git-svn-id: svn://10.0.0.236/trunk@163725 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 07:34:54 +00:00
igor%mir2.org
bf785dba1d More work for bug 244492: I deprecated ClassDefinitionException modified
ScriptableObject to use EvaluatorException instead.

For greater compatibility I also changed ClassDefinitionException to extend
from RuntimeException, not Exception so compilers would not complain about
"catch (ClassDefinitionException ex)" when no ClassDefinitionException is present in the called code.


git-svn-id: svn://10.0.0.236/trunk@162089 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 17:50:05 +00:00
igor%mir2.org
4fb35c7990 Deprecating PropertyException as a part of common exception root changes, see 244492.
git-svn-id: svn://10.0.0.236/trunk@160765 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-14 16:45:30 +00:00
igor%mir2.org
ce4cf79edd Documenting ClassFactory usage
git-svn-id: svn://10.0.0.236/trunk@160762 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-14 15:17:40 +00:00
igor%mir2.org
517d03f07c GeneratedClassLoader is API class and should be listed in apiClasses.properties
git-svn-id: svn://10.0.0.236/trunk@160388 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-05 06:06:30 +00:00
igor%mir2.org
f0931bf120 Work on bug 244492: RhinoException is the new common base class for all exceptions.
git-svn-id: svn://10.0.0.236/trunk@157511 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-07 16:40:28 +00:00
igor%mir2.org
65ceeaed9a Introduction of ContextAction interface as a safe alternative for Context.enter/Context.exit. All usages of Context.enter/Context.exit in Rhino are replaced by
Context.call(new ContextAction() {
	public Object run(Context cx) { ... }
});
or similar alternatives.

It prevents bugs with missed Context.exit and provides room for optimization of Context association with current thread and simplify implementation of safe environment for execution of untrusted applets and scripts.

In addition, Rhino now supports global SecurityController that take precedence over any per/Context controllers so the application can setup the controller once and for all.


git-svn-id: svn://10.0.0.236/trunk@157466 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-06 15:33:59 +00:00
igor%mir2.org
d974004953 ContextFactory is a new API class
git-svn-id: svn://10.0.0.236/trunk@157460 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-06 09:28:18 +00:00
igor%mir2.org
fd04b52604 EvaluatorException and WrappedException are public API now
git-svn-id: svn://10.0.0.236/trunk@151516 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 21:21:41 +00:00
igor%mir2.org
5537bf9bee Deprecating ClassNameHelper and ClassRepository in favor of new optimizer/ClassCompiler.
git-svn-id: svn://10.0.0.236/trunk@151464 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-17 21:52:30 +00:00
igor%mir2.org
9e8aa2c915 ClassRepository is removed from list of API classes to allow to replace it in future by direct access to optimizer.
git-svn-id: svn://10.0.0.236/trunk@148832 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-04 14:55:58 +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
8b299d4caf GlobalScope is a part of API now.
git-svn-id: svn://10.0.0.236/trunk@147790 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-09 06:42:30 +00:00
igor%mir2.org
a78fee9997 Changing Context.newObject to use ScriptRuntime.getExistingCtor to get constructor Function instance. In this way Context.newObject will throw the same set of exceptions that other parts of Rhino will throw on bad access to constructor.
With this change NotAFunctionException is no longer used so it is deprecated and changed to extend from Error not Exception for source compatibility: otherwise compiler will complain about unreachable catch handler.


git-svn-id: svn://10.0.0.236/trunk@146672 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-10 12:44:23 +00:00
igor%mir2.org
df74d8e664 Removal of deprecated classes from the list of API docs
git-svn-id: svn://10.0.0.236/trunk@139766 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 14:14:29 +00:00
igor%mir2.org
f176c10a35 New security implementation.
git-svn-id: svn://10.0.0.236/trunk@124686 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 21:40:12 +00:00
nboyd%atg.com
a1f8df61c4 Add new API class WrapFactory.
git-svn-id: svn://10.0.0.236/trunk@122987 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 14:28:37 +00:00
nboyd%atg.com
3a21e84698 Move serialization classes to new package.
git-svn-id: svn://10.0.0.236/trunk@104225 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 20:50:59 +00:00
nboyd%atg.com
10c183d386 Add support for serialization and deserialization.
git-svn-id: svn://10.0.0.236/trunk@103916 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-27 02:33:51 +00:00
nboyd%atg.com
a1aa12604c Fix javadoc with new directory structure.
git-svn-id: svn://10.0.0.236/trunk@93066 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-25 14:36:15 +00:00
matthias%sorted.org
c113577e8a added support for implementing Java-style synchronized methods in Javascript
git-svn-id: svn://10.0.0.236/trunk@85830 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 13:02:42 +00:00
nboyd%atg.com
5f3aed5cb5 Add ContextListener to API classes.
git-svn-id: svn://10.0.0.236/trunk@83787 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-18 19:30:26 +00:00
nboyd%atg.com
004cf1c125 Upgrade to Ant 1.2 and remove deprecated tasks.
git-svn-id: svn://10.0.0.236/trunk@82145 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 18:43:55 +00:00
nboyd%atg.com
61afa72365 Add support for new Ant-based buildfile.
git-svn-id: svn://10.0.0.236/trunk@80582 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-06 16:26:17 +00:00