8134731: Function.prototype.apply interacts incorrectly with arguments
Reviewed-by: attila, hannesw
<HTML>
<!--
Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of Oracle nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="keywords" CONTENT="Java(tm) Plug-in">
<META NAME="GENERATOR" CONTENT="Mozilla/4.02 [en] (X11; U; SunOS 5.5.1 sun4u) [Netscape]">
<TITLE>Java(tm) Plug-in Demo Page</TITLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF">
<!-- begin main page table -->
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 >
<TR>
<TD VALIGN=TOP WIDTH="157"><!-------------------------------><!-- SERVER SIDE INCLUDE FOR --><!-- NAVIGATION MENU AT LEFT --><!-------------------------------><!--#include virtual="/share/include/navigate.html"--></TD>
<TD VALIGN=TOP WIDTH="452"><!-- begin header table -->
<TABLE BORDER=0 WIDTH="452" >
<CAPTION><!-------------------------------><!-- SERVER SIDE INCLUDE FOR --><!-- HEADER AT TOP OF PAGE --><!-------------------------------><!--#include virtual="/share/include/normal.header.html"--><!-- breadcrumb trail --></CAPTION>
<TR>
<TD ALIGN=RIGHT VALIGN=TOP HEIGHT="25"></TD>
</TR>
<TR>
<TD></TD>
</TR>
<TR>
<TD ALIGN=RIGHT COLSPAN="2"><!-- page headline --><!-------------------------------><!--EDIT THE PAGE HEADLINE HERE--><!------------BEGIN-HEADLINE-----><FONT SIZE=+2>JAVA™ PLUG-IN</FONT>
<BR><B>Demonstration Applets</B>
<BR><!-------------END-HEADLINE------><!-- END OF PAGE HEADLINE --><!-------------------------------></TD>
</TR>
<TR>
<TD ALIGN=RIGHT VALIGN=TOP COLSPAN="2" HEIGHT="30"><!-- subcategories of the current topic --><!-------------------------------><!-- MAKE DUPLICATE LINKS HERE --><!--OF LINKS THAT OCCUR THROUGH--><!-- OUT THE BODY OF THIS DOC --><!------------BEGIN-SUB TOPICS---><FONT SIZE=-1><A HREF="http://java.sun.com/products/plugin/index.html">Java
Plug-in home page</A> | <A HREF="http://java.sun.com/javase/MKTG_VERSION/docs/technotes/guides/plugin/developer_guide/faq/index.html">FAQ</A>
| <A HREF="http://java.sun.com/javase/MKTG_VERSION/docs/technotes/guides/plugin/developer_guide/contents.html">Documentation</A> </FONT>
</TD>
</TR>
</TABLE>
<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=0 WIDTH="452" >
<TR>
<TD COLSPAN="2" WIDTH="452">
<TABLE WIDTH="100%" NOSAVE >
<TR>
<TD></TD>
<TD></TD>
</TR>
</TABLE>
<!-- Begin Page Data --><!-------------------------------><!-- EDIT PAGE CONTENT HERE --><!------------BEGIN-CONTENT------><!-- Beginning of the more info table -->
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="466" >
<TR>
<TD ALIGN=RIGHT VALIGN=TOP ROWSPAN="2" WIDTH="8"></TD>
<TD>
<DIV ALIGN=right><!--<TD WIDTH=466 VALIGN=TOP ALIGN=RIGHT><BR>--><!-- <IMG WIDTH=60 HEIGHT=1 SRC="/images/dot_clear.gif"> --></DIV>
</TD>
</TR>
<TR>
<TD ALIGN=LEFT VALIGN=TOP WIDTH="466"><!-- Beginning of the more info table -->
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=3 >
<CAPTION><!-- #===================== DOWNLOAD HOTJAVA 1.1 BETA 2 ===================== --></CAPTION>
<TR>
<TD ALIGN=RIGHT VALIGN=TOP><!-- <FONT COLOR="#FF0000" SIZE="+2"><STRONG>2.</STRONG></FONT> --></TD>
<TD><!--<IMG SRC="/images/chiclet2.jpg" WIDTH=14 HEIGHT=11 BORDER=0 ALT="Bullet">
<FONT SIZE="+1"><STRONG>Java Plug-in Demo Page</STRONG></FONT><BR> --></TD>
</TR>
<TR>
<TD></TD>
<TD><!-- start -->
<P>The examples on this page provide demonstration applets for
the purpose of demonstrating and evaluating Java Plug-in. Hence, the HTML
of each page explicitly specifies the use of the Java<SUP><FONT SIZE=-2>TM</FONT></SUP>Plug-in
rather than the default Java virtual machine contained in your browser.
<P>Java Plug-in is installed as part of the public Java<SUP><FONT SIZE=-2>TM</FONT></SUP> SE Runtime Environment.
Once installed, the Java Plug-in loads automatically
and transparently to render Java applets.
<P>All of these applets leverage Java<SUP><FONT SIZE=-2>TM</FONT></SUP> SE Development Kit MKTG_VERSION features, and are thus dependent
on features in that version. For information on compatibility, see <A HREF="http://java.sun.com/javase/MKTG_VERSION/compatibility.html">Compatibility
with Previous Releases</A>. The applets include those in the <TT>demo</TT>
directory of the Java SE Development Kit, plus a few extras. Each applet is viewed
by opening the respective web page (see the links below) in your
Web browser.
<H3>
<A NAME="educational"></A>Educational Applets</H3>
<UL><!-- NEW APPLETS GO HERE --><!-- Please note the date you add the applet. --><!-- Also include the author's name. -->
<LI>
<!--James Gosling--><A HREF="applets/MoleculeViewer/example1.html">3D Chemical Models</A>
<BR>(see also <A HREF="applets/MoleculeViewer/example2.html">example2</A>
and <A HREF="applets/MoleculeViewer/example3.html">example3</A>)</LI></UL>
<!--educational-->
<H3>
<A NAME="utilities"></A>Utilities</H3>
<UL><!-- NEW APPLETS GO HERE --><!-- Please note the date you add the applet. --><!-- Also include the author's name. -->
<LI>
<!--Rachel Gollub--><A HREF="applets/Clock/example1.html">A
Clock</A></LI>
<LI>
<!--Sami Shaio--><A HREF="applets/SpreadSheet/example1.html">A
Simple Spreadsheet</A></LI>
<LI>
<!--Sami Shaio--><A HREF="applets/BarChart/example1.html">A
Simple Bar Chart Applet</A></LI>
</UL>
<!--utilities-->
<H3>
<A NAME="programmers"></A>For Programmers Only</H3>
<UL><!-- NEW APPLETS GO HERE --><!-- Please note the date you add the applet. --><!-- Also include the author's name. -->
<LI>
<A HREF="applets/ArcTest/example1.html">ArcTest</A></LI>
<LI>
<A HREF="applets/CardTest/example1.html">CardTest</A></LI>
<LI>
<A HREF="applets/DitherTest/example1.html">DitherTest</A></LI>
<LI>
<A HREF="applets/DrawTest/example1.html">DrawTest</A></LI>
<LI>
<A HREF="applets/GraphicsTest/example1.html">GraphicsTest</A></LI>
<LI>
<A HREF="applets/SimpleGraph/example1.html">SimpleGraph</A></LI>
</UL>
<H3>
<A NAME="spice"></A>Applets to Enhance a Web Page</H3>
<UL><!-- NEW APPLETS GO HERE --><!-- Please note the date you add the applet. --><!-- Also include the author's name. --><!-- <LI>
by Arthur van Hoff; added 10/12/95<A HREF="ImageLoop/1.1/index.html">ImageLoop,
the Original Animation Applet</A></LI> -->
<!--Arthur van Hoff--><A HREF="applets/Blink/example1.html">Blinking
Text</A></LI>
</UL>
<H3>
<A NAME="spice"></A>JFC Applets</H3>
<UL><!-- Please note the date you add the applet. --><!-- Also include the author's name. --><!-- <LI>
by Arthur van Hoff; added 10/12/95<A HREF="ImageLoop/1.1/index.html">ImageLoop,
the Original Animation Applet</A></LI> -->
<!--spice--><!-- end -->
<LI>
<!----><A HREF="jfc/Java2D/Java2Demo.html">Java
2D</A></LI>
<!--spice--><!-- end --></UL>
</TD>
</TR>
<TR>
<TD></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<!-------------END-CONTENT-------><!-- END OF PAGE DATA --><!-------------------------------><!-- End Page Data --></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<!-- Footer table --><!-------------------------------><!-- SERVER SIDE INCLUDE FOR --><!-- FOOTER AT BOTTOM OF PAGE --><!-------------------------------><!--#include virtual="/share/include/normal.footer.html"-->
</BODY>
</HTML>