Thu, 25 Jul 2013 14:05:03 +0530
8021252: invokeMethod throws NoSuchMethodException when script object is from different script context
Reviewed-by: lagergren, hannesw
jlaskey@3 | 1 | DO NOT TRANSLATE OR LOCALIZE. |
jlaskey@3 | 2 | ----------------------------- |
jlaskey@3 | 3 | |
jlaskey@3 | 4 | %% This notice is provided with respect to ECMAScript Language |
jlaskey@3 | 5 | Specification ECMA-262 Edition 5.1 which is included with the Nashorn |
jlaskey@3 | 6 | technology. |
jlaskey@3 | 7 | |
jlaskey@3 | 8 | --- begin of LICENSE --- |
jlaskey@3 | 9 | Copyright notice |
jlaskey@3 | 10 | Copyright © 2011 Ecma International |
jlaskey@3 | 11 | Ecma International |
jlaskey@3 | 12 | Rue du Rhone 114 |
jlaskey@3 | 13 | CH-1204 Geneva |
jlaskey@3 | 14 | Tel: +41 22 849 6000 |
jlaskey@3 | 15 | Fax: +41 22 849 6001 |
jlaskey@3 | 16 | Web: http://www.ecma-international.org |
jlaskey@3 | 17 | |
jlaskey@3 | 18 | This document and possible translations of it may be copied and furnished to |
jlaskey@3 | 19 | others, and derivative works that comment on or otherwise explain it or assist |
jlaskey@3 | 20 | in its implementation may be prepared, copied, published, and distributed, in |
jlaskey@3 | 21 | whole or in part, without restriction of any kind, provided that the above |
jlaskey@3 | 22 | copyright notice and this section are included on all such copies and derivative |
jlaskey@3 | 23 | works. However, this document itself may not be modified in any way, including |
jlaskey@3 | 24 | by removing the copyright notice or references to Ecma International, except as |
jlaskey@3 | 25 | needed for the purpose of developing any document or deliverable produced by |
jlaskey@3 | 26 | Ecma International (in which case the rules applied to copyrights must be |
jlaskey@3 | 27 | followed) or as required to translate it into languages other than English. The |
jlaskey@3 | 28 | limited permissions granted above are perpetual and will not be revoked by Ecma |
jlaskey@3 | 29 | International or its successors or assigns. This document and the information |
jlaskey@3 | 30 | contained herein is provided on an "AS IS" basis and ECMA INTERNATIONAL |
jlaskey@3 | 31 | DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY |
jlaskey@3 | 32 | WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP |
jlaskey@3 | 33 | RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR |
jlaskey@3 | 34 | PURPOSE." Software License |
jlaskey@3 | 35 | |
jlaskey@3 | 36 | All Software contained in this document ("Software)" is protected by copyright |
jlaskey@3 | 37 | and is being made available under the "BSD License", included below. This |
jlaskey@3 | 38 | Software may be subject to third party rights (rights from parties other than |
jlaskey@3 | 39 | Ecma International), including patent rights, and no licenses under such third |
jlaskey@3 | 40 | party rights are granted under this license even if the third party concerned is |
jlaskey@3 | 41 | a member of Ecma International. SEE THE ECMA CODE OF CONDUCT IN PATENT MATTERS |
jlaskey@3 | 42 | AVAILABLE AT http://www.ecma-international.org/memento/codeofconduct.htm FOR |
jlaskey@3 | 43 | INFORMATION REGARDING THE LICENSING OF PATENT CLAIMS THAT ARE REQUIRED TO |
jlaskey@3 | 44 | IMPLEMENT ECMA INTERNATIONAL STANDARDS*. Redistribution and use in source and |
jlaskey@3 | 45 | binary forms, with or without modification, are permitted provided that the |
jlaskey@3 | 46 | following conditions are met: |
jlaskey@3 | 47 | |
jlaskey@3 | 48 | 1. Redistributions of source code must retain the above copyright notice, this |
jlaskey@3 | 49 | list of conditions and the following disclaimer. |
jlaskey@3 | 50 | |
jlaskey@3 | 51 | 2. Redistributions in binary form must reproduce the above copyright notice, |
jlaskey@3 | 52 | this list of conditions and the following disclaimer in the documentation and/or |
jlaskey@3 | 53 | other materials provided with the distribution. |
jlaskey@3 | 54 | |
jlaskey@3 | 55 | 3. Neither the name of the authors nor Ecma International may be used to endorse |
jlaskey@3 | 56 | or promote products derived from this software without specific prior written |
jlaskey@3 | 57 | permission. |
jlaskey@3 | 58 | |
jlaskey@3 | 59 | THIS SOFTWARE IS PROVIDED BY THE ECMA INTERNATIONAL "AS IS" AND ANY EXPRESS OR |
jlaskey@3 | 60 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
jlaskey@3 | 61 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
jlaskey@3 | 62 | SHALL ECMA INTERNATIONAL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
jlaskey@3 | 63 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
jlaskey@3 | 64 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
jlaskey@3 | 65 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
jlaskey@3 | 66 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
jlaskey@3 | 67 | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY |
jlaskey@3 | 68 | OF SUCH DAMAGE. |
jlaskey@3 | 69 | --- end of LICENSE --- |
attila@90 | 70 | |
attila@90 | 71 | %% This notice is provided with respect to Dynalink library which is included |
attila@90 | 72 | with the Nashorn technology. |
attila@90 | 73 | |
attila@90 | 74 | --- begin of LICENSE --- |
attila@90 | 75 | Copyright (c) 2009-2013, Attila Szegedi |
attila@90 | 76 | |
attila@90 | 77 | Redistribution and use in source and binary forms, with or without |
attila@90 | 78 | modification, are permitted provided that the following conditions are |
attila@90 | 79 | met: |
attila@90 | 80 | * Redistributions of source code must retain the above copyright |
attila@90 | 81 | notice, this list of conditions and the following disclaimer. |
attila@90 | 82 | * Redistributions in binary form must reproduce the above copyright |
attila@90 | 83 | notice, this list of conditions and the following disclaimer in the |
attila@90 | 84 | documentation and/or other materials provided with the distribution. |
attila@90 | 85 | * Neither the name of the copyright holder nor the names of |
attila@90 | 86 | contributors may be used to endorse or promote products derived from |
attila@90 | 87 | this software without specific prior written permission. |
attila@90 | 88 | |
attila@90 | 89 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS |
attila@90 | 90 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
attila@90 | 91 | TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
attila@90 | 92 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER |
attila@90 | 93 | BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
attila@90 | 94 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
attila@90 | 95 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
attila@90 | 96 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
attila@90 | 97 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
attila@90 | 98 | OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
attila@90 | 99 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
attila@90 | 100 | --- end of LICENSE --- |
hannesw@115 | 101 | |
hannesw@115 | 102 | %% This notice is provided with respect to Joni library which is included |
hannesw@115 | 103 | with the Nashorn technology. |
hannesw@115 | 104 | |
hannesw@115 | 105 | --- begin of LICENSE --- |
hannesw@115 | 106 | Permission is hereby granted, free of charge, to any person obtaining a copy of |
hannesw@115 | 107 | this software and associated documentation files (the "Software"), to deal in |
hannesw@115 | 108 | the Software without restriction, including without limitation the rights to |
hannesw@115 | 109 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies |
hannesw@115 | 110 | of the Software, and to permit persons to whom the Software is furnished to do |
hannesw@115 | 111 | so, subject to the following conditions: |
hannesw@115 | 112 | |
hannesw@115 | 113 | The above copyright notice and this permission notice shall be included in all |
hannesw@115 | 114 | copies or substantial portions of the Software. |
hannesw@115 | 115 | |
hannesw@115 | 116 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
hannesw@115 | 117 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
hannesw@115 | 118 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
hannesw@115 | 119 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
hannesw@115 | 120 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
hannesw@115 | 121 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
hannesw@115 | 122 | SOFTWARE. |
hannesw@115 | 123 | --- end of LICENSE --- |