# HG changeset patch # User Sebastian Kruse # Date 1354118198 -3600 # Node ID 6ec1ab4f897adddabd0093af957fdde226c1d74e # Parent 3184e8faa5c0f8c213601e4b577122aa62826477 Added .toString() to force String output, otherwise this can lead to Type Exceptions (e.g. when an int is returned). diff -r 3184e8faa5c0 -r 6ec1ab4f897a src/econnect/wp3_3/client/core/DataSet.java --- a/src/econnect/wp3_3/client/core/DataSet.java Tue Nov 27 11:57:47 2012 +0100 +++ b/src/econnect/wp3_3/client/core/DataSet.java Wed Nov 28 16:56:38 2012 +0100 @@ -31,7 +31,7 @@ }-*/; public final native String getSource() /*-{ - return this.source; + return this.source.toString(); }-*/; /** diff -r 3184e8faa5c0 -r 6ec1ab4f897a src/econnect/wp3_3/client/widgets/timeplot/StiTimeplot.java --- a/src/econnect/wp3_3/client/widgets/timeplot/StiTimeplot.java Tue Nov 27 11:57:47 2012 +0100 +++ b/src/econnect/wp3_3/client/widgets/timeplot/StiTimeplot.java Wed Nov 28 16:56:38 2012 +0100 @@ -69,26 +69,26 @@ * get actual min time */ public final native String minTime() /*-{ - return this.eds.minDate.getTime(); + return this.eds.minDate.getTime().toString(); }-*/; /** * get actual max time */ public final native String maxTime() /*-{ - return this.eds.maxDate.getTime(); + return this.eds.maxDate.getTime().toString(); }-*/; public final native String minSelTime() /*-{ if( this.leftFlagTime != null ){ - return this.leftFlagTime.getTime(); + return this.leftFlagTime.getTime().toString(); } return null; }-*/; public final native String maxSelTime() /*-{ if( this.rightFlagTime != null ){ - return this.rightFlagTime.getTime(); + return this.rightFlagTime.getTime().toString(); } return null; }-*/;