11611 Commits

Author SHA1 Message Date
hannes%helma.at
fca609c2fb Fix bug 600259 - Use System.arraycopy instead of an for loop in SubString
git-svn-id: svn://10.0.0.236/trunk@261299 18797224-902f-48f8-a5cc-f745e15eee43
2010-09-28 19:43:01 +00:00
hannes%helma.at
54cf6d81e1 Omit function body in "x is not a function in f" error message.
Including very long function bodies used to make error messages utterly
unreadable. This fix preserves the function name and arguments so they're
still be recognizable.


git-svn-id: svn://10.0.0.236/trunk@261298 18797224-902f-48f8-a5cc-f745e15eee43
2010-09-28 09:48:44 +00:00
hannes%helma.at
8d55c98f02 Avoid overwiting methods with same signature in JavaMembers method lookup.
One class that triggers this bug is com.google.javascript.jscomp.JSSourceFile
from Google's closure-compiler project, which overrides static methods
of the parent class with a different return type.


git-svn-id: svn://10.0.0.236/trunk@261227 18797224-902f-48f8-a5cc-f745e15eee43
2010-09-16 20:12:20 +00:00
hannes%helma.at
f728611c40 Be more defensive with class version detection in ClassFileWriter.
git-svn-id: svn://10.0.0.236/trunk@261150 18797224-902f-48f8-a5cc-f745e15eee43
2010-08-30 21:00:40 +00:00
hannes%helma.at
d5255b30d3 Fix for JavaAdapter wrongly detecting methods as abstract (e.g. in java.util.ArrayList)
git-svn-id: svn://10.0.0.236/trunk@261099 18797224-902f-48f8-a5cc-f745e15eee43
2010-08-25 12:51:04 +00:00
hannes%helma.at
a8743c6395 Fix potential NullPointerException caused by previous commit.
git-svn-id: svn://10.0.0.236/trunk@261098 18797224-902f-48f8-a5cc-f745e15eee43
2010-08-25 09:57:45 +00:00
nboyd%atg.com
7f909a9735 Fix Bug 586057 - support stack map generation for Java 6 bytecode
Patch from Daniel Tang.


git-svn-id: svn://10.0.0.236/trunk@261048 18797224-902f-48f8-a5cc-f745e15eee43
2010-08-16 13:44:12 +00:00
hannes%helma.at
6bebec172c Fix bug 582654 - NativeIterator.jsConstructor throws ArrayIndexOutOfBoundsException
git-svn-id: svn://10.0.0.236/trunk@260900 18797224-902f-48f8-a5cc-f745e15eee43
2010-07-28 18:20:26 +00:00
hannes%helma.at
ac3fe9b445 Fix Bug 576874 - Repeated reflection warning due to lack of privileges
git-svn-id: svn://10.0.0.236/trunk@260621 18797224-902f-48f8-a5cc-f745e15eee43
2010-07-04 20:43:31 +00:00
nboyd%atg.com
63bd35e41b Bug fix for semicolon insertion between names.
git-svn-id: svn://10.0.0.236/trunk@260471 18797224-902f-48f8-a5cc-f745e15eee43
2010-06-15 18:40:28 +00:00
nboyd%atg.com
4288a7fb88 Fix Bug 567217 - TokenStream.getToken() does not return Token.COMMENT for HTML comments
git-svn-id: svn://10.0.0.236/trunk@260410 18797224-902f-48f8-a5cc-f745e15eee43
2010-06-02 18:41:21 +00:00
nboyd%atg.com
420d703422 Fix javadoc errors and warnings.
git-svn-id: svn://10.0.0.236/trunk@260409 18797224-902f-48f8-a5cc-f745e15eee43
2010-06-02 01:37:38 +00:00
hannes%helma.at
4a8ed81a27 Fix subtle bug in JavaAdapter signature comparison.
git-svn-id: svn://10.0.0.236/trunk@260332 18797224-902f-48f8-a5cc-f745e15eee43
2010-05-18 11:12:14 +00:00
szegedia%freemail.hu
306c383629 Fix for Bug 561514 - Codegen uses wrong invoke opcode in generateFunctionConstructor
git-svn-id: svn://10.0.0.236/trunk@260223 18797224-902f-48f8-a5cc-f745e15eee43
2010-04-24 04:03:14 +00:00
hannes%helma.at
42b97156da Remove/deprecate FilenameFilter argument from RhinoException script stack methods - we actually have enough info to reliably detect script stack elements by our own.
git-svn-id: svn://10.0.0.236/trunk@260190 18797224-902f-48f8-a5cc-f745e15eee43
2010-04-13 13:33:16 +00:00
hannes%helma.at
3921011ec9 Fix bug 557817 - Parser does not complain about unclosed array literal
git-svn-id: svn://10.0.0.236/trunk@260166 18797224-902f-48f8-a5cc-f745e15eee43
2010-04-07 15:17:27 +00:00
hannes%helma.at
70afc83cfa Patch for bug 549604 - Add (non ECMA) property "stack" to NativeError
This adds a new getScriptStack() method to RhinoException, returning an
array of instances of the also new ScriptStackElement class.
This is used to allow applying different formatting styles when generating
the `stack` property on NativeError objects.

By default, the "traditional" Rhino script stack format is used. There
is a static useMozillaStackStyle(boolean) in RhinoException to use
the Mozilla/Firefox script stack rendring format instead.

Also, function names are now included in script stacks from
compiled code, and the stack property is also generated on Errors
constructed and thrown by script code if the
FEATURE_LOCATION_INFORMATION_IN_ERROR is enabled (the latter is now
done in JavaScriptException constructor instead of NativeError to
avoid duplication of effort).

Original patch and tests by Marc Guillemot.


git-svn-id: svn://10.0.0.236/trunk@260117 18797224-902f-48f8-a5cc-f745e15eee43
2010-03-31 15:12:45 +00:00
hannes%helma.at
a460a3b5fd Undo previous unintentional commit without message (sorry!)
git-svn-id: svn://10.0.0.236/trunk@260116 18797224-902f-48f8-a5cc-f745e15eee43
2010-03-31 14:34:37 +00:00
hannes%helma.at
b2155dd92f *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@260115 18797224-902f-48f8-a5cc-f745e15eee43
2010-03-31 14:13:32 +00:00
hannes%helma.at
1933027d05 Patch for bug 513682 - Allow passing explicit synchronization object to sync(function)
git-svn-id: svn://10.0.0.236/trunk@260102 18797224-902f-48f8-a5cc-f745e15eee43
2010-03-30 10:06:36 +00:00
szegedia%freemail.hu
81eae9b18c Fix accidental use of Java 6 only API
git-svn-id: svn://10.0.0.236/trunk@260020 18797224-902f-48f8-a5cc-f745e15eee43
2010-03-23 11:25:57 +00:00
hannes%helma.at
d09a71fa85 Use actual interfaces to calculate hashCode() on JavaAdapterSignature.
git-svn-id: svn://10.0.0.236/trunk@260017 18797224-902f-48f8-a5cc-f745e15eee43
2010-03-22 18:01:58 +00:00
hannes%helma.at
141cb16b8e Fix 500199 - JavaAdapters have same ProtectionDomain as rhino jar file.
Introduces RhinoSecurityManager subclass of java.lang.SecurityManager


git-svn-id: svn://10.0.0.236/trunk@260016 18797224-902f-48f8-a5cc-f745e15eee43
2010-03-22 17:48:56 +00:00
mrbkap%gmail.com
73148bf50a Bug 504021 - Add push/popping code in more places. r=jst a=beltzner
git-svn-id: svn://10.0.0.236/trunk@259938 18797224-902f-48f8-a5cc-f745e15eee43
2010-03-10 21:11:14 +00:00
bclary%bclary.com
af944dcf24 JavaScript Tests - add tests for bugs 375651, 390598, 429739, 451322, 460886, 465145, 465686, 469405, 469547, 470619, 472533, 473282, 474529, 476257, 476653, 476871, 479567, 482783, 489682
git-svn-id: svn://10.0.0.236/trunk@259784 18797224-902f-48f8-a5cc-f745e15eee43
2010-02-22 18:53:47 +00:00
szegedia%freemail.hu
5dee46e0cc Allow other exceptions - in addition to IOException - to be thrown from ModuleScriptProvider.getModuleScript()
git-svn-id: svn://10.0.0.236/trunk@259756 18797224-902f-48f8-a5cc-f745e15eee43
2010-02-19 09:47:19 +00:00
szegedia%freemail.hu
aa5e61a2ff "Fluidized" the builder setters, so they can be chained
git-svn-id: svn://10.0.0.236/trunk@259755 18797224-902f-48f8-a5cc-f745e15eee43
2010-02-19 09:44:52 +00:00
szegedia%freemail.hu
90128975de 540724: Implement support for CommonJS Modules/1.1
git-svn-id: svn://10.0.0.236/trunk@259708 18797224-902f-48f8-a5cc-f745e15eee43
2010-02-15 19:31:20 +00:00
mrbkap%gmail.com
7c4a96ea59 Bug 531364 - Account for differences in the old code. r=jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@259572 18797224-902f-48f8-a5cc-f745e15eee43
2010-02-02 19:25:50 +00:00
szegedia%freemail.hu
8f648f9c20 Make it compile under Java 6 - disambiguate vararg invocation
git-svn-id: svn://10.0.0.236/trunk@259520 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-31 19:30:13 +00:00
mrbkap%gmail.com
dbea1036d8 Minimal fix for bug 504021. r=jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@259482 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-27 01:21:43 +00:00
mrbkap%gmail.com
4c16d780b7 Bug 483847 - Remove bogo-assertion. r=Waldo a=dveditz
git-svn-id: svn://10.0.0.236/trunk@259481 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-27 00:41:26 +00:00
mrbkap%gmail.com
3b88dd0cc1 Bug 531364 - Change up the order of these calls. r=peterv sr=bzbarsky a=dveditz
git-svn-id: svn://10.0.0.236/trunk@259480 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-26 23:34:11 +00:00
szegedia%freemail.hu
985b8935cc Removed dead field
git-svn-id: svn://10.0.0.236/trunk@259425 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-18 09:59:10 +00:00
szegedia%freemail.hu
57ba62b017 Promoting final String to static
git-svn-id: svn://10.0.0.236/trunk@259424 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-18 09:57:16 +00:00
szegedia%freemail.hu
b5fa596eea Interpreter doesn't use compiler env - removed dead field
git-svn-id: svn://10.0.0.236/trunk@259423 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-18 09:53:58 +00:00
szegedia%freemail.hu
dd143fdf6e Fix potential null dereference
git-svn-id: svn://10.0.0.236/trunk@259422 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-18 09:50:26 +00:00
szegedia%freemail.hu
bfb03e65ce Fix uppercase method name
git-svn-id: svn://10.0.0.236/trunk@259421 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-18 09:48:29 +00:00
szegedia%freemail.hu
934526f2bf More efficient construction of numbers
git-svn-id: svn://10.0.0.236/trunk@259420 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-18 09:45:52 +00:00
szegedia%freemail.hu
4d45205780 Use valueOf() instead of new
git-svn-id: svn://10.0.0.236/trunk@259419 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-18 09:38:50 +00:00
szegedia%freemail.hu
e0d1882942 FindBugs: use entrySet() instead of keySet() with get()
git-svn-id: svn://10.0.0.236/trunk@259418 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-18 09:05:58 +00:00
szegedia%freemail.hu
7c4008ac8f FindBugs: don't mask RuntimeExceptions
git-svn-id: svn://10.0.0.236/trunk@259417 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-18 09:03:05 +00:00
szegedia%freemail.hu
704faadf7d FindBugs catch: implement Serializable on Comparator
git-svn-id: svn://10.0.0.236/trunk@259416 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-18 08:57:48 +00:00
szegedia%freemail.hu
5095dfe908 FindBugs catch: class loader should be created within a doPrivileged() block
git-svn-id: svn://10.0.0.236/trunk@259415 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-18 08:57:02 +00:00
szegedia%freemail.hu
5e03ac8ae9 Bugfix: properly synchronize access to a static DateFormat object
git-svn-id: svn://10.0.0.236/trunk@259414 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-18 08:48:00 +00:00
nboyd%atg.com
ac46a09d9b Patch from Alberto Saez Torres; see Bug 524931 - Setting the value of an uninitialized child of an E4X object by using square bracket syntax causes Null Pointer Exception
git-svn-id: svn://10.0.0.236/trunk@259387 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-14 12:17:00 +00:00
nboyd%atg.com
0fe33fd3b3 No need for special handling of toString or toLocaleString any more, as the prototype of arguments is Object.prototype
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@259347 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-06 18:17:54 +00:00
nboyd%atg.com
3b019c8add Fix Bug 537483 - JSON.parse doesn't correctly add properties with numeric identifiers
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@259332 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-03 02:21:47 +00:00
nboyd%atg.com
4eb5a0ee26 Fix formatting.
git-svn-id: svn://10.0.0.236/trunk@259298 18797224-902f-48f8-a5cc-f745e15eee43
2009-12-23 21:47:43 +00:00
nboyd%atg.com
1a55563a39 Fix Bug 524931 - Setting the value of an uninitialized child of an E4X object by using square bracket syntax causes Null Pointer Exception
Patch from Alberto Saez Torres.


git-svn-id: svn://10.0.0.236/trunk@259295 18797224-902f-48f8-a5cc-f745e15eee43
2009-12-23 14:09:08 +00:00