3133N/AOracle elects to license this component under the Sun Public License Version 1.0.
261N/A *****************************************************************************
261N/A * This file is part of the BeanShell Java Scripting distribution. *
261N/A * Sun Public License Notice: *
261N/A * The contents of this file are subject to the Sun Public License Version *
261N/A * 1.0 (the "License"); you may not use this file except in compliance with *
261N/A * The Original Code is BeanShell. The Initial Developer of the Original *
261N/A * Code is Pat Niemeyer. Portions created by Pat Niemeyer are Copyright *
261N/A * (C) 2000. All Rights Reserved. *
261N/A * GNU Public License Notice: *
261N/A * Alternatively, the contents of this file may be used under the terms of *
261N/A * the GNU Lesser General Public License (the "LGPL"), in which case the *
261N/A * provisions of LGPL are applicable instead of those above. If you wish to *
261N/A * allow use of your version of this file only under the terms of the LGPL *
261N/A * and not to allow others to use your version of this file under the SPL, *
261N/A * indicate your decision by deleting the provisions above and replace *
261N/A * them with the notice and other provisions required by the LGPL. If you *
261N/A * do not delete the provisions above, a recipient may use your version of *
261N/A * this file under either the SPL or the LGPL. *
261N/A * Patrick Niemeyer (pat@pat.net) *
261N/A * Author of Learning Java, O'Reilly & Associates *
261N/A *****************************************************************************
261N/ASUN PUBLIC LICENSE Version 1.0
261N/A 1.0.1. "Commercial Use" means distribution or otherwise making the
261N/A Covered Code available to a third party.
261N/A 1.1. "Contributor" means each entity that creates or contributes to
261N/A the creation of Modifications.
261N/A 1.2. "Contributor Version" means the combination of the Original Code,
261N/A prior Modifications used by a Contributor, and the Modifications made
261N/A by that particular Contributor.
261N/A 1.3. "Covered Code" means the Original Code or Modifications or the
261N/A combination of the Original Code and Modifications, in each case
261N/A including portions thereof and corresponding documentation released
261N/A 1.4. "Electronic Distribution Mechanism" means a mechanism generally
261N/A accepted in the software development community for the electronic
261N/A 1.5. "Executable" means Covered Code in any form other than Source
261N/A 1.6. "Initial Developer" means the individual or entity identified as
261N/A the Initial Developer in the Source Code notice required by Exhibit A.
261N/A 1.7. "Larger Work" means a work which combines Covered Code or
261N/A portions thereof with code not governed by the terms of this License.
261N/A 1.8. "License" means this document.
261N/A 1.8.1. "Licensable" means having the right to grant, to the maximum
261N/A extent possible, whether at the time of the initial grant or
261N/A subsequently acquired, any and all of the rights conveyed herein.
261N/A 1.9. "Modifications" means any addition to or deletion from the
261N/A substance or structure of either the Original Code or any previous
261N/A Modifications. When Covered Code is released as a series of files, a
261N/A A. Any addition to or deletion from the contents of a file containing
261N/A Original Code or previous Modifications.
261N/A B. Any new file that contains any part of the Original Code or
261N/A previous Modifications.
261N/A 1.10. "Original Code" means Source Code of computer software code
261N/A which is described in the Source Code notice required by Exhibit A as
261N/A Original Code, and which, at the time of its release under this
261N/A License is not already Covered Code governed by this License.
261N/A 1.10.1. "Patent Claims" means any patent claim(s), now owned or
261N/A hereafter acquired, including without limitation, method, process, and
261N/A apparatus claims, in any patent Licensable by grantor.
261N/A 1.11. "Source Code" means the preferred form of the Covered Code for
261N/A making modifications to it, including all modules it contains, plus
261N/A any associated documentation, interface definition files, scripts used
261N/A to control compilation and installation of an Executable, or source
261N/A code differential comparisons against either the Original Code or
261N/A another well known, available Covered Code of the Contributor's
261N/A choice. The Source Code can be in a compressed or archival form,
261N/A provided the appropriate decompression or de-archiving software is
261N/A widely available for no charge.
261N/A 1.12. "You" (or "Your") means an individual or a legal entity
261N/A exercising rights under, and complying with all of the terms of, this
261N/A License or a future version of this License issued under Section 6.1.
261N/A For legal entities, "You" includes any entity which controls, is
261N/A controlled by, or is under common control with You. For purposes of
261N/A this definition, "control" means (a) the power, direct or indirect, to
261N/A cause the direction or management of such entity, whether by contract
261N/A or otherwise, or (b) ownership of more than fifty percent (50%) of the
261N/A outstanding shares or beneficial ownership of such entity.
261N/A2.1 The Initial Developer Grant.
261N/A The Initial Developer hereby grants You a world-wide, royalty-free,
261N/A non-exclusive license, subject to third party intellectual property
261N/A (a) under intellectual property rights (other than patent or
261N/A trademark) Licensable by Initial Developer to use, reproduce, modify,
261N/A display, perform, sublicense and distribute the Original Code (or
261N/A portions thereof) with or without Modifications,
and/or as part of a
261N/A (b) under Patent Claims infringed by the making, using or selling of
261N/A Original Code, to make, have made, use, practice, sell, and offer for
261N/A sale,
and/or otherwise dispose of the Original Code (or portions
261N/A (c) the licenses granted in this Section 2.1(a) and (b) are effective
261N/A on the date Initial Developer first distributes Original Code under
261N/A the terms of this License.
261N/A (d) Notwithstanding Section 2.1(b) above, no patent license is
261N/A granted: 1) for code that You delete from the Original Code; 2)
261N/A separate from the Original Code; or 3) for infringements caused by:
261N/A i) the modification of the Original Code or ii) the combination of the
261N/A Original Code with other software or devices.
261N/A Subject to third party intellectual property claims, each Contributor
261N/A hereby grants You a world-wide, royalty-free, non-exclusive license
261N/A (a) under intellectual property rights (other than patent or
261N/A trademark) Licensable by Contributor, to use, reproduce, modify,
261N/A display, perform, sublicense and distribute the Modifications created
261N/A by such Contributor (or portions thereof) either on an unmodified
261N/A basis, with other Modifications, as Covered Code
and/or as part of a
261N/A (b) under Patent Claims infringed by the making, using, or selling of
261N/A Modifications made by that Contributor either alone
and/or in
261N/A combination with its Contributor Version (or portions of such
261N/A combination), to make, use, sell, offer for sale, have made,
and/or 261N/A otherwise dispose of: 1) Modifications made by that Contributor (or
261N/A portions thereof); and 2) the combination of Modifications made by
261N/A that Contributor with its Contributor Version (or portions of such
261N/A (c) the licenses granted in Sections 2.2(a) and 2.2(b) are effective
261N/A on the date Contributor first makes Commercial Use of the Covered
261N/A (d) notwithstanding Section 2.2(b) above, no patent license is
261N/A granted: 1) for any code that Contributor has deleted from the
261N/A Contributor Version; 2) separate from the Contributor Version; 3) for
261N/A infringements caused by: i) third party modifications of Contributor
261N/A Version or ii) the combination of Modifications made by that
261N/A Contributor with other software (except as part of the Contributor
261N/A Version) or other devices; or 4) under Patent Claims infringed by
261N/A Covered Code in the absence of Modifications made by that Contributor.
261N/A3. Distribution Obligations.
261N/A3.1. Application of License.
261N/A The Modifications which You create or to which You contribute are
261N/A governed by the terms of this License, including without limitation
261N/A Section 2.2. The Source Code version of Covered Code may be
261N/A distributed only under the terms of this License or a future version
261N/A of this License released under Section 6.1, and You must include a
261N/A copy of this License with every copy of the Source Code You
261N/A distribute. You may not offer or impose any terms on any Source Code
261N/A version that alters or restricts the applicable version of this
261N/A License or the recipients' rights hereunder. However, You may include
261N/A an additional document offering the additional rights described in
261N/A3.2. Availability of Source Code.
261N/A Any Modification which You create or to which You contribute must be
261N/A made available in Source Code form under the terms of this License
261N/A either on the same media as an Executable version or via an accepted
261N/A Electronic Distribution Mechanism to anyone to whom you made an
261N/A Executable version available; and if made available via Electronic
261N/A Distribution Mechanism, must remain available for at least twelve (12)
261N/A months after the date it initially became available, or at least six
261N/A (6) months after a subsequent version of that particular Modification
261N/A has been made available to such recipients. You are responsible for
261N/A ensuring that the Source Code version remains available even if the
261N/A Electronic Distribution Mechanism is maintained by a third party.
261N/A3.3. Description of Modifications.
261N/A You must cause all Covered Code to which You contribute to contain a
261N/A file documenting the changes You made to create that Covered Code and
261N/A the date of any change. You must include a prominent statement that
261N/A the Modification is derived, directly or indirectly, from Original
261N/A Code provided by the Initial Developer and including the name of the
261N/A Initial Developer in (a) the Source Code, and (b) in any notice in an
261N/A Executable version or related documentation in which You describe the
261N/A origin or ownership of the Covered Code.
261N/A3.4. Intellectual Property Matters.
261N/A (a) Third Party Claims.
261N/A If Contributor has knowledge that a license under a third party's
261N/A intellectual property rights is required to exercise the rights
261N/A granted by such Contributor under Sections 2.1 or 2.2, Contributor
261N/A must include a text file with the Source Code distribution titled
261N/A "LEGAL'' which describes the claim and the party making the claim in
261N/A sufficient detail that a recipient will know whom to contact. If
261N/A Contributor obtains such knowledge after the Modification is made
261N/A available as described in Section 3.2, Contributor shall promptly
261N/A modify the LEGAL file in all copies Contributor makes available
261N/A thereafter and shall take other steps (such as notifying appropriate
261N/A mailing lists or newsgroups) reasonably calculated to inform those who
261N/A received the Covered Code that new knowledge has been obtained.
261N/A If Contributor's Modifications include an application programming
261N/A interface ("API") and Contributor has knowledge of patent licenses
261N/A which are reasonably necessary to implement that API, Contributor must
261N/A also include this information in the LEGAL file.
261N/A Contributor represents that, except as disclosed pursuant to Section
261N/A 3.4(a) above, Contributor believes that Contributor's Modifications
261N/A are Contributor's original creation(s)
and/or Contributor has
261N/A sufficient rights to grant the rights conveyed by this License.
261N/A You must duplicate the notice in Exhibit A in each file of the Source
261N/A Code. If it is not possible to put such notice in a particular Source
261N/A Code file due to its structure, then You must include such notice in a
261N/A location (such as a relevant directory) where a user would be likely
261N/A to look for such a notice. If You created one or more Modification(s)
261N/A You may add your name as a Contributor to the notice described in
261N/A Exhibit A. You must also duplicate this License in any documentation
261N/A for the Source Code where You describe recipients' rights or ownership
261N/A rights relating to Covered Code. You may choose to offer, and to
261N/A charge a fee for, warranty, support, indemnity or liability
261N/A obligations to one or more recipients of Covered Code. However, You
261N/A may do so only on Your own behalf, and not on behalf of the Initial
261N/A Developer or any Contributor. You must make it absolutely clear than
261N/A any such warranty, support, indemnity or liability obligation is
261N/A offered by You alone, and You hereby agree to indemnify the Initial
261N/A Developer and every Contributor for any liability incurred by the
261N/A Initial Developer or such Contributor as a result of warranty,
261N/A support, indemnity or liability terms You offer.
261N/A3.6. Distribution of Executable Versions.
261N/A You may distribute Covered Code in Executable form only if the
261N/A requirements of Section 3.1-3.5 have been met for that Covered Code,
261N/A and if You include a notice stating that the Source Code version of
261N/A the Covered Code is available under the terms of this License,
261N/A including a description of how and where You have fulfilled the
261N/A obligations of Section 3.2. The notice must be conspicuously included
261N/A in any notice in an Executable version, related documentation or
261N/A collateral in which You describe recipients' rights relating to the
261N/A Covered Code. You may distribute the Executable version of Covered
261N/A Code or ownership rights under a license of Your choice, which may
261N/A contain terms different from this License, provided that You are in
261N/A compliance with the terms of this License and that the license for the
261N/A Executable version does not attempt to limit or alter the recipient's
261N/A rights in the Source Code version from the rights set forth in this
261N/A License. If You distribute the Executable version under a different
261N/A license You must make it absolutely clear that any terms which differ
261N/A from this License are offered by You alone, not by the Initial
261N/A Developer or any Contributor. You hereby agree to indemnify the
261N/A Initial Developer and every Contributor for any liability incurred by
261N/A the Initial Developer or such Contributor as a result of any such
261N/A You may create a Larger Work by combining Covered Code with other code
261N/A not governed by the terms of this License and distribute the Larger
261N/A Work as a single product. In such a case, You must make sure the
261N/A requirements of this License are fulfilled for the Covered Code.
261N/A4. Inability to Comply Due to Statute or Regulation.
261N/A If it is impossible for You to comply with any of the terms of this
261N/A License with respect to some or all of the Covered Code due to
261N/A statute, judicial order, or regulation then You must: (a) comply with
261N/A the terms of this License to the maximum extent possible; and (b)
261N/A describe the limitations and the code they affect. Such description
261N/A must be included in the LEGAL file described in Section 3.4 and must
261N/A be included with all distributions of the Source Code. Except to the
261N/A extent prohibited by statute or regulation, such description must be
261N/A sufficiently detailed for a recipient of ordinary skill to be able to
261N/A5. Application of this License.
261N/A This License applies to code to which the Initial Developer has
261N/A attached the notice in Exhibit A and to related Covered Code.
261N/A6. Versions of the License.
261N/A Sun Microsystems, Inc. ("Sun") may publish revised
and/or new versions
261N/A of the License from time to time. Each version will be given a
261N/A distinguishing version number.
261N/A6.2. Effect of New Versions.
261N/A Once Covered Code has been published under a particular version of the
261N/A License, You may always continue to use it under the terms of that
261N/A version. You may also choose to use such Covered Code under the terms
261N/A of any subsequent version of the License published by Sun. No one
261N/A other than Sun has the right to modify the terms applicable to Covered
261N/A Code created under this License.
261N/A If You create or use a modified version of this License (which you may
261N/A only do in order to apply it to code which is not already Covered Code
261N/A governed by this License), You must: (a) rename Your license so that
261N/A the phrases "Sun," "Sun Public License," or "SPL" or any confusingly
261N/A similar phrase do not appear in your license (except to note that your
261N/A license differs from this License) and (b) otherwise make it clear
261N/A that Your version of the license contains terms which differ from the
261N/A Sun Public License. (Filling in the name of the Initial Developer,
261N/A Original Code or Contributor in the notice described in Exhibit A
261N/A shall not of themselves be deemed to be modifications of this
261N/A7. DISCLAIMER OF WARRANTY.
261N/A COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS'' BASIS,
261N/A WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
261N/A WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
261N/A DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
261N/A THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
261N/A IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
261N/A YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
261N/A COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
261N/A OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
261N/A ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
261N/A 8.1. This License and the rights granted hereunder will terminate
261N/A automatically if You fail to comply with terms herein and fail to cure
261N/A such breach within 30 days of becoming aware of the breach. All
261N/A sublicenses to the Covered Code which are properly granted shall
261N/A survive any termination of this License. Provisions which, by their
261N/A nature, must remain in effect beyond the termination of this License
261N/A 8.2. If You initiate litigation by asserting a patent infringement
261N/A claim (excluding declaratory judgment actions) against Initial Developer
261N/A or a Contributor (the Initial Developer or Contributor against whom
261N/A You file such action is referred to as "Participant") alleging that:
261N/A (a) such Participant's Contributor Version directly or indirectly
261N/A infringes any patent, then any and all rights granted by such
261N/A Participant to You under Sections 2.1
and/or 2.2 of this License
261N/A shall, upon 60 days notice from Participant terminate prospectively,
261N/A unless if within 60 days after receipt of notice You either: (i)
261N/A agree in writing to pay Participant a mutually agreeable reasonable
261N/A royalty for Your past and future use of Modifications made by such
261N/A Participant, or (ii) withdraw Your litigation claim with respect to
261N/A the Contributor Version against such Participant. If within 60 days
261N/A of notice, a reasonable royalty and payment arrangement are not
261N/A mutually agreed upon in writing by the parties or the litigation claim
261N/A is not withdrawn, the rights granted by Participant to You under
261N/A Sections 2.1
and/or 2.2 automatically terminate at the expiration of
261N/A the 60 day notice period specified above.
261N/A (b) any software, hardware, or device, other than such Participant's
261N/A Contributor Version, directly or indirectly infringes any patent, then
261N/A any rights granted to You by such Participant under Sections 2.1(b)
261N/A and 2.2(b) are revoked effective as of the date You first made, used,
261N/A sold, distributed, or had made, Modifications made by that
261N/A 8.3. If You assert a patent infringement claim against Participant
261N/A alleging that such Participant's Contributor Version directly or
261N/A indirectly infringes any patent where such claim is resolved (such as
261N/A by license or settlement) prior to the initiation of patent
261N/A infringement litigation, then the reasonable value of the licenses
261N/A granted by such Participant under Sections 2.1 or 2.2 shall be taken
261N/A into account in determining the amount or value of any payment or
261N/A 8.4. In the event of termination under Sections 8.1 or 8.2 above, all
261N/A end user license agreements (excluding distributors and resellers)
261N/A which have been validly granted by You or any distributor hereunder
261N/A prior to termination shall survive termination.
261N/A9. LIMITATION OF LIABILITY.
261N/A UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
261N/A (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
261N/A DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
261N/A OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
261N/A ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
261N/A CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
261N/A WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
261N/A COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
261N/A INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
261N/A LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
261N/A RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
261N/A PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
261N/A EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
261N/A THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
261N/A The Covered Code is a "commercial item," as that term is defined in 48
261N/A C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer software"
261N/A and "commercial computer software documentation," as such terms are
261N/A 12.212 and 48
C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all
261N/A U.S. Government End Users acquire Covered Code with only those rights
261N/A This License represents the complete agreement concerning subject
261N/A matter hereof. If any provision of this License is held to be
261N/A unenforceable, such provision shall be reformed only to the extent
261N/A necessary to make it enforceable. This License shall be governed by
261N/A California law provisions (except to the extent applicable law, if
261N/A any, provides otherwise), excluding its conflict-of-law provisions.
261N/A With respect to disputes in which at least one party is a citizen of,
261N/A or an entity chartered or registered to do business in the United
261N/A States of America, any litigation relating to this License shall be
261N/A subject to the jurisdiction of the Federal Courts of the Northern
261N/A District of California, with venue lying in Santa Clara County,
261N/A California, with the losing party responsible for costs, including
261N/A without limitation, court costs and reasonable attorneys' fees and
261N/A expenses. The application of the United Nations Convention on
261N/A Contracts for the International Sale of Goods is expressly excluded.
261N/A Any law or regulation which provides that the language of a contract
261N/A shall be construed against the drafter shall not apply to this
261N/A12. RESPONSIBILITY FOR CLAIMS.
261N/A As between Initial Developer and the Contributors, each party is
261N/A responsible for claims and damages arising, directly or indirectly,
261N/A out of its utilization of rights under this License and You agree to
261N/A work with Initial Developer and Contributors to distribute such
261N/A responsibility on an equitable basis. Nothing herein is intended or
261N/A shall be deemed to constitute any admission of liability.
261N/A13. MULTIPLE-LICENSED CODE.
261N/A Initial Developer may designate portions of the Covered Code as
261N/A "Multiple-Licensed". Multiple-Licensed means that the Initial
261N/A Developer permits you to utilize portions of the Covered Code under
261N/A Your choice of the alternative licenses, if any, specified by the
261N/A Initial Developer in the file described in Exhibit A.
261N/AExhibit A -Sun Public License Notice.
261N/A The contents of this file are subject to the Sun Public License
261N/A Version 1.0 (the "License"); you may not use this file except in
261N/A compliance with the License. A copy of the License is available at
261N/A The Original Code is _________________. The Initial Developer of the
261N/A Original Code is ___________. Portions created by ______ are Copyright
261N/A (C)_________. All Rights Reserved.
261N/A Contributor(s): ______________________________________.
261N/A Alternatively, the contents of this file may be used under the terms
261N/A of the _____ license (the [___] License), in which case the
261N/A provisions of [______] License are applicable instead of those above.
261N/A If you wish to allow use of your version of this file only under the
261N/A terms of the [____] License and not to allow others to use your
261N/A version of this file under the SPL, indicate your decision by deleting
261N/A the provisions above and replace them with the notice and other
261N/A provisions required by the [___] License. If you do not delete the
261N/A provisions above, a recipient may use your version of this file under
261N/A either the SPL or the [___] License."
261N/A [NOTE: The text of this Exhibit A may differ slightly from the text of
261N/A the notices in the Source Code files of the Original Code. You should
261N/A use the text of this Exhibit A rather than the text found in the
261N/A Original Code Source Code for Your Modifications.]