[Bug 1198] JSObject is not valid on Javascript side
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Wed Oct 24 00:59:51 PDT 2012
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1198
--- Comment #2 from helpcrypto at gmail.com ---
Hi
(In reply to comment #1)
> The supplied code has a bug. JSObject has no field named code:
> http://www.docjar.com/docs/api/netscape/javascript/JSObject.html
??
What line are you talking about?
Im setting a member, setting an attribute to JSObject to be used on JS side.
> I am not sure what it is that the oracle plugin is setting, but it shouldn't
> work there either. I looked through what icedtea-web is doing and it
> correctly detects that there is no field named code and therefore sets
> nothing.
In the URL you provided:
setMember
public void setMember(java.lang.String name, java.lang.Object value)
Sets a named member of a JavaScript object. Equivalent to "this.name =
value" in JavaScript.
> Is your intent to recursively set a java object field via javascript? If so,
> why do it recursively instead of in-code?
What?
Javascript is a "weak" language, so Im able to add and remove object attributes
anytime I need.
Im adding an attribute called "code" on JAVA and then trying to read it on JS.
Sorry if i didnt explained myself ot the problem properly, lack on english.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20121024/5f728474/attachment.html
More information about the distro-pkg-dev
mailing list