United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7063739 : FF: applet.status has ambiguous type

Details
Type:
Bug
Submit Date:
2011-07-07
Status:
Resolved
Updated Date:
2011-09-22
Project Name:
JDK
Resolved Date:
2011-09-06
Component:
deploy
OS:
generic
Sub-Component:
deployment_toolkit
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7-client
Fixed Versions:
7u2 (b04)

Related Reports
Backport:

Sub Tasks

Description
window.alert(applet.status) reports "class NPObject Ambiguous member class" in the Firefox.
Works ok (reports number) in IE

applet.status() reports number in FF.

Would be good to improve field access.

                                    

Comments
EVALUATION

Ambiguos class is reported because we define both property and method functions on "status" object. 
This is probably ok.

But may be we can improve default conversion logic to return value instead of type?
I.e. why would window.alert(applet.status) show type and not number?
                                     
2011-08-22
EVALUATION

I guess that's because it treated it as method. I have being advocate we should implement status as read-only property, not method.

That is, don't support applet.status().
                                     
2011-08-23



Hardware and Software, Engineered to Work Together