[Bug 1731] New: Possible bug using JSObject setMember invalid [Object object]

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Fri Apr 4 10:43:20 UTC 2014


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1731

            Bug ID: 1731
           Summary: Possible bug using JSObject setMember invalid [Object
                    object]
           Product: IcedTea-Web
           Version: unspecified
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Plugin
          Assignee: dbhole at redhat.com
          Reporter: helpcrypto at gmail.com
                CC: unassigned at icedtea.classpath.org

On our applet we have more or less:

JSObject win = JSObject.getWindow(applet);
JSObject js = (JSObject) win.eval("new Object();");
try {
    //...
    js.setMember("code", 0);
    js.setMember("message", "Ok");
    js.setMember("data", "...");
}
catch(Exception ex){
    //...
}
return js;


IIRC this worked after fixing 1198 but it doesn't do it anymore, and now
console is showing:
    Setting to class class java.lang.Integer:false
    Setting to class class java.lang.String:false
    Setting to class class java.lang.String:false

The object on the JS side is an [Object object] without attributes, like in
1198.


I'm using Ubuntu 12.04 with 
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)


Thanks!

-- 
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/20140404/42ec870f/attachment.html>


More information about the distro-pkg-dev mailing list