JDK-6984728 : FF3.5/FF3. : Javascript error is getting thrown while running some liveconnect scenarios (Java > JS)
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows
  • CPU: generic
  • Submitted: 2010-09-14
  • Updated: 2010-11-19
  • Resolved: 2010-11-19
Related Reports
Relates :  
Description
JDK bundles : JDK7-b109
Os: windows XP/Vista/7
While running some liveonnect scenarios with Firefox3.x browsers i.e. scenarios trying to make Java > Javascript communication and vice-versa, javascript error "Error: Attempt to call a default method on object with no invokeDefault method" is getting raised . Problem is not seen with IE7 or IE8 browser

Steps to reproduce:
-------------------
1) Install JDK7-b109
2) Try running the following applet inside the FF3.5 or FF3.6 browser
http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/ojiliveconnect/src/JSListTest.html
 if alert pop-up with above mentioned error message then bug is reproduced

Link to Java files:
http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/ojiliveconnect/src/JSListTest.java
http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/ojiliveconnect/src/StringList.java

Following test from the Liveconnect testsuite is failing due to this bug:
LiveConnect/JSListTest

Comments
EVALUATION The exception is caused by JSListTest.html line 31, app.setString("List entry: "+childElem()); By changing the line to following fix the problem. app.setString("List entry: "+childElem); I would imagine the right code should be either childElem.toString() or just childElem, but not childElem(). However, I am not sure why this is a regression.
17-11-2010