JDK-6624949 : JavaScript object to Java String conversion needed
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u5,6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 2007-11-01
  • Updated: 2010-09-08
  • Resolved: 2007-12-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u10 b09Fixed
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
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.
21-11-2007

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/
21-11-2007