public native static void getJson(int requestId, AroundInfoHandler
handler) /*-{
    var callback = "callback" + requestId;
    // [1] Create a script element.
    var script = document.createElement("script");
    script.setAttribute("src",
"https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&sensor=false&key=myKey"+callback);
    script.setAttribute("type", "text/javascript");
    // [2] Define the callback function on the window object.
    window[callback] = function(jsonObj) {
        // [3]
        console.log("Succeed to call google places service");
        console.log(jsonObj);
         //call java method here
        window[callback + "done"] = true;
    }
    // [4] JSON download has 1-second timeout.
    setTimeout(function() {
                if (!window[callback + "done"]) {
                   console.log("Failed to call google places service");
                   //call java method here;
                }
                // [5] Cleanup. Remove script and callback elements.
                document.body.removeChild(script);
                delete window[callback];
                delete window[callback + "done"];
            }, 1000);
    // [6] Attach the script element to the document body.
    document.body.appendChild(script);
}-*/;
Even change window/document to $wnd/$doc,same problem as before,Can
anybody help me?Thanks!