changeset 28:6ec1ab4f897a

Added .toString() to force String output, otherwise this can lead to Type Exceptions (e.g. when an int is returned).
author Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
date Wed, 28 Nov 2012 16:56:38 +0100
parents 3184e8faa5c0
children 4711c4ab0c23
files src/econnect/wp3_3/client/core/DataSet.java src/econnect/wp3_3/client/widgets/timeplot/StiTimeplot.java
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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();
 	}-*/;
 
 	/**
--- 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;
 	}-*/;