I have a JSNI function that returns a JavaScript Date object. I want to return as a Java Date class, but keeps getting ClassCastException. How exactly should I change my code?
java.lang.ClassCastException: com.google.gwt.core.client.JavaScriptObject$ public native Date getVisibleChartStartDate(JavaScriptObject jso) /*- { return jso.getVisibleChartRange().start; }-*/; jso.getVisibleChartRange().start is a JavaScript Date object. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---