I'm going through the StockWatcher tutorial and I get to the RPC part
(http://code.google.com/webtoolkit/tutorials/1.6/RPC.html).
At the first test point I get this error message as expected ...
[ERROR] Type 'com.google.gwt.sample.stockwatcher.client.StockPrice'
was not serializable
and has no concrete serializable subtypes
However, after putting in the code to "fix" it ... I still get the
same error. What am I missing?
Here is my StockPrice class ...
package com.google.gwt.sample.stockwatcher.client;
import java.io.Serializable;
public class StockPrice implements Serializable {
private String symbol;
private double price;
private double change;
public StockPrice(String symbol, double price, double change) {
this.symbol = symbol;
this.price = price;
this.change = change;
}
public String getSymbol() { return this.symbol; }
public double getPrice() { return this.price; }
public double getChange() { return this.change; }
public double getChangePercent() {
return 100.0 * this.change / this.price;
}
public void setSymbol(String symbol) { this.symbol = symbol; }
public void setPrice(double price) { this.price = price; }
public void setChange(double change) { this.change = change; }
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---