United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6624949 JavaScript object to Java String conversion needed
6624949 : JavaScript object to Java String conversion needed

Details
Type:
Bug
Submit Date:
2007-11-01
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2007-12-26
Component:
deploy
OS:
generic,windows_xp
Sub-Component:
plugin
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u5,6u10
Fixed Versions:
6u10

Related Reports

Sub Tasks

Description
The attached test case shows that a conversion from a JSObject to a Java String needs to be added to the new LiveConnect code for compatibility. The test case runs successfully with the old Java Plug-In but raises a JavaScript error in the new Java Plug-In due to the absence of this implicit conversion.

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u10/6624949.1
testcase: http://web-east.east.sun.com/deployment/www/tests/1.6.0_10/6624949/
                                     
2007-11-21
EVALUATION

Relaxed the type conversion rules in JavaScript-to-Java calls to allow conversion from JSObject to String. The underlying MessagePassingJSObject already had support for conversion to string. Tested in IE and Firefox.
                                     
2007-11-21



Hardware and Software, Engineered to Work Together